From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Sun, 8 Mar 2015 18:38:28 +0000 (+0100)
Subject: a convenience target to push initscripts/ and systemd/ in an unwrapped area
X-Git-Tag: bootcd-5.2-5~7
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=70822883c0a9e95495df62ac5360a487a335f6fb;p=bootcd.git

a convenience target to push initscripts/ and systemd/ in an unwrapped area
---

diff --git a/Makefile b/Makefile
index ef52a82..08159ad 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,14 @@ sync-clean:
 
 # once sync-mount is OK you can start tweaking the contents of bootcd/ and overlay/ manually
 #
+# -- or -- use this target to push the files in initscripts/ and systemd/ into
+# that newly created bootcd/ before running sync-rewrap
+RSYNC = rsync -av --exclude .du
+
+sync-push:
+	$(RSYNC) initscripts/ root@$(KVMHOST):$(KVMDIR)/bootcd/etc/init.d/
+	$(RSYNC) systemd/ root@$(KVMHOST):$(KVMDIR)/bootcd/etc/systemd/system/
+
 # and then use this to rebuild a new .iso
 
 # same as in build.sh