[Fai-commit] r3787 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Aug 24 14:19:57 UTC 2006


Author: lange
Date: 2006-08-24 14:19:56 +0000 (Thu, 24 Aug 2006)
New Revision: 3787

Modified:
   trunk/lib/subroutines
Log:
umount /sys at the end of dirinst, remove test on Linux OS in task_faiend


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-08-24 14:03:59 UTC (rev 3786)
+++ trunk/lib/subroutines	2006-08-24 14:19:56 UTC (rev 3787)
@@ -386,14 +386,10 @@
     cd /
     sync
 
-    case $(uname -s) in
-	Linux)
-	    killall -q sshd
-	    umount $FAI_ROOT/proc
-	    umount -ar
-	    exec reboot -dfi
-	    ;;
-    esac
+    killall -q sshd
+    umount $FAI_ROOT/proc
+    umount -ar
+    exec reboot -dfi
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_install() {
@@ -433,7 +429,7 @@
 
     save_dmesg
 
-    mkdir -p $target
+    mkdir -p $FAI_ROOT
     task extrbase
     task mirror
     task debconf
@@ -453,6 +449,8 @@
 	sndmon "TASKERROR install 21"
 	die "Please look at the log files in $LOGDIR for errors."
     fi
+    umount $FAI_ROOT/proc
+    umount $FAI_ROOT/sys
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_softupdate() {




More information about the Fai-commit mailing list