[Fai-commit] r4814 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sat Dec 8 14:07:07 UTC 2007


Author: lange
Date: 2007-12-08 14:07:07 +0000 (Sat, 08 Dec 2007)
New Revision: 4814

Modified:
   trunk/bin/make-fai-nfsroot
Log:
exit with error if software installation has errors (closes: #442261)


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2007-12-04 15:01:12 UTC (rev 4813)
+++ trunk/bin/make-fai-nfsroot	2007-12-08 14:07:07 UTC (rev 4814)
@@ -56,6 +56,7 @@
     [ -d $NFSROOT/usr/share/live-initramfs ] || die "live-initramfs was not installed inside the nfsroot."
     local files=$(ls $NFSROOT/boot/initrd* 2>/dev/null)
     [ -z "$files" ] && die "No initrd installed."
+    egrep -q "^ERROR: " /var/log/fai/make-fai-nfsroot.log && bad_exit
     return 0
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the Fai-commit mailing list