# 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
(cd bootcd && find . | cpio --quiet -c -o) | gzip -1 > iso/bootcd.img; \
mkisofs -o $(NODE).iso $(MKISOFS_OPTS) iso/; \
)"
+
+# install just build.sh in the myplc - assuming it has no bonding links..
+sync-build:
+ $(RSYNC) build.sh root@$(PLCHOSTLXC):/vservers/$(GUESTNAME)/usr/share/bootcd\*/