[Fai-commit] r4119 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Tue Oct 31 18:10:55 CET 2006


Author: lange
Date: 2006-10-31 18:10:55 +0100 (Tue, 31 Oct 2006)
New Revision: 4119

Modified:
   trunk/lib/subroutines
Log:
umount config dir at the end of softupdate action


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-10-29 22:48:32 UTC (rev 4118)
+++ trunk/lib/subroutines	2006-10-31 17:10:55 UTC (rev 4119)
@@ -521,7 +521,10 @@
 	sendmon "TASKERROR softupdate 21"
 	die "Please look at the log files in $LOGDIR for errors."
     fi
-    umount $FAI_ROOT/fai
+    echo $FAI_CONFIG_SRC | grep -q ^nfs://
+    if [ $? -eq 0 ]; then
+	grep -q $FAI_ROOT /etc/mtab || umount $FAI
+    fi
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 




More information about the Fai-commit mailing list