From cd2fd58da3f5648a62f3fb7586cdc910c09a31af Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 3 Apr 2009 17:23:33 +0100 Subject: [PATCH] Remove initramfs/fakelog.root if make-initramfs fails. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $@ -- 1.8.3.1