[Fai-commit] r6252 - branches/stable/3.4/lib

Michael Prokop mika at alioth.debian.org
Thu Dec 23 12:46:10 UTC 2010


Author: mika
Date: 2010-12-23 12:46:09 +0000 (Thu, 23 Dec 2010)
New Revision: 6252

Modified:
   branches/stable/3.4/lib/subroutines
Log:
catch every exit code != 0 from mount2dir

Modified: branches/stable/3.4/lib/subroutines
===================================================================
--- branches/stable/3.4/lib/subroutines	2010-12-23 12:46:00 UTC (rev 6251)
+++ branches/stable/3.4/lib/subroutines	2010-12-23 12:46:09 UTC (rev 6252)
@@ -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