From: Richard Jones Date: Fri, 3 Apr 2009 16:23:33 +0000 (+0100) Subject: Remove initramfs/fakelog.root if make-initramfs fails. X-Git-Tag: 0.4~36 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=cd2fd58da3f5648a62f3fb7586cdc910c09a31af;p=libguestfs.git Remove initramfs/fakelog.root if make-initramfs fails. --- diff --git a/Makefile.am b/Makefile.am index 05613bb..621df7b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,7 +38,7 @@ $(INITRAMFSIMG) $(VMLINUZ): initramfs/fakeroot.log initramfs/fakeroot.log: make-initramfs.sh.in -mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak -mv $(VMLINUZ) $(VMLINUZ).bak - bash $(builddir)/make-initramfs.sh || rm -f $@ + if ! bash $(builddir)/make-initramfs.sh; then rm -f $@; exit 1; fi $(INITRAMFSIMG): initramfs/fakeroot.log daemon/guestfsd rm -f $@