Ignore failure of 'mv' commands in appliance Makefile.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 31 Jul 2009 06:40:57 +0000 (07:40 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 31 Jul 2009 09:18:40 +0000 (10:18 +0100)
A lot of people report these as 'errors' when they are not.
Hide the error messages.

appliance/Makefile.am

index 6c8a972..8391b8b 100644 (file)
@@ -57,8 +57,8 @@ endif
 $(INITRAMFSIMG) $(VMLINUZ): $(top_builddir)/initramfs/fakeroot.log
 
 $(top_builddir)/initramfs/fakeroot.log: make.sh kmod.whitelist packagelist
-       -mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak
-       -mv $(VMLINUZ) $(VMLINUZ).bak
+       mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak 2>/dev/null; :
+       mv $(VMLINUZ) $(VMLINUZ).bak 2>/dev/null; :
        if ! bash make.sh; then rm -f $@; exit 1; fi
 
 $(INITRAMFSIMG): $(top_builddir)/initramfs/fakeroot.log $(top_builddir)/daemon/guestfsd init update.sh