[Fai-commit] r6231 - trunk/lib

Thomas Lange lange at alioth.debian.org
Thu Dec 9 17:07:24 UTC 2010


Author: lange
Date: 2010-12-09 17:07:20 +0000 (Thu, 09 Dec 2010)
New Revision: 6231

Modified:
   trunk/lib/subroutines
Log:
catch every exit code != 0 from mount2dir


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2010-12-07 15:31:23 UTC (rev 6230)
+++ trunk/lib/subroutines	2010-12-09 17:07:20 UTC (rev 6231)
@@ -413,7 +413,7 @@
 	swapon -p1 $sd && [ "$verbose" ] && echo "Enable swap device $sd"
     done
     mount2dir $FAI_ROOT $LOGDIR/fstab
-    if [ "$?" -eq 1 ]; then
+    if [ "$?" -ne 0 ]; then
 	sendmon "TASKERROR mountdisks 705"
 	task_error 705
     fi




More information about the Fai-commit mailing list