[Fai-commit] r3783 - trunk/lib
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Thu Aug 24 13:45:36 UTC 2006
Author: lange
Date: 2006-08-24 13:45:35 +0000 (Thu, 24 Aug 2006)
New Revision: 3783
Modified:
trunk/lib/subroutines
Log:
add task dirinst
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2006-08-24 10:26:20 UTC (rev 3782)
+++ trunk/lib/subroutines 2006-08-24 13:45:35 UTC (rev 3783)
@@ -249,6 +249,10 @@
task install
task faiend
;;
+ dirinst)
+ echo "Installing into directory $FAI_ROOT"
+ task dirinst
+ ;;
softupdate)
echo Performing FAI system update. All data may be overwritten!
task softupdate
@@ -423,6 +427,34 @@
fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+task_dirinst() {
+
+ > $stamp
+
+ save_dmesg
+
+ mkdir -p $target
+ task extrbase
+ task mirror
+ task debconf
+ task prepareapt
+ task updatebase
+ task instsoft
+ task configure
+
+ rm -f $stamp
+ # save again, because new messages could be created
+ save_dmesg
+# task savelog
+
+ if [ -f $stamp ]; then
+ echo "Error while executing commands in subshell."
+ echo "$stamp was not removed."
+ sndmon "TASKERROR install 21"
+ die "Please look at the log files in $LOGDIR for errors."
+ fi
+}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
task_softupdate() {
local stamp=/var/run/fai/fai_softupdate_is_running
More information about the Fai-commit
mailing list