X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=e01c2e09b86ea2f23b2f77d559b8103ed2d23463;hb=9f83389f08524569424e5b38365ce3fb131b8a6d;hp=ef52a82ec106378c38db656e4912a63f95dd9559;hpb=e68f51317f1b48a26c8994fe077f58408b13473a;p=bootcd.git diff --git a/Makefile b/Makefile index ef52a82..e01c2e0 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 @@ -57,3 +65,7 @@ sync-rewrap: (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\*/