X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=08159ad8d509316e77b79429aba0d11e3e3193f1;hb=70822883c0a9e95495df62ac5360a487a335f6fb;hp=0c07e519828381aa1be85b16b6c8c5fd1e5d167a;hpb=8e9387ccf6bb0040f8f89a1d8fe256d27daeac09;p=bootcd.git diff --git a/Makefile b/Makefile index 0c07e51..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 @@ -51,9 +59,9 @@ MKISOFS_OPTS="-R -J -r -f -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-s sync-rewrap: ssh root@$(KVMHOST) "(cd $(KVMDIR); \ - echo "Rewrapping bootcd.img"; \ - (cd overlay && find . | cpio --quiet -c -o) | gzip -9 > iso/overlay.img; \ echo "Rewrapping overlay.img"; \ - (cd bootcd && find . | cpio --quiet -c -o) | gzip -9 > iso/bootcd.img; \ + (cd overlay && find . | cpio --quiet -c -o) | gzip -1 > iso/overlay.img; \ + echo "Rewrapping bootcd.img"; \ + (cd bootcd && find . | cpio --quiet -c -o) | gzip -1 > iso/bootcd.img; \ mkisofs -o $(NODE).iso $(MKISOFS_OPTS) iso/; \ )"