[Fai-commit] r3780 - trunk/lib
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Wed Aug 23 22:03:58 UTC 2006
Author: lange
Date: 2006-08-23 22:03:58 +0000 (Wed, 23 Aug 2006)
New Revision: 3780
Modified:
trunk/lib/subroutines
Log:
replace $target with $FAI_ROOT (which is the same)
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2006-08-23 21:42:15 UTC (rev 3779)
+++ trunk/lib/subroutines 2006-08-23 22:03:58 UTC (rev 3780)
@@ -362,11 +362,11 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
task_savelog() {
- [ -d $target/var/log/fai ] || mkdir -p $target/var/log/fai
- [ -d $target/var/log/fai ] && fai-savelog -l
- [ -f $LOGDIR/FAI_CLASSES ] && cp -p $LOGDIR/FAI_CLASSES $target/var/log/fai
- [ -f $LOGDIR/variables.sh ] && cp -p $LOGDIR/variables.sh $target/var/log/fai
- [ "$diskvar" != "/var/log/fai/disk_var.sh" ] && cp -p $diskvar $target/var/log/fai
+ [ -d $FAI_ROOT/var/log/fai ] || mkdir -p $FAI_ROOT/var/log/fai
+ [ -d $FAI_ROOT/var/log/fai ] && fai-savelog -l
+ [ -f $LOGDIR/FAI_CLASSES ] && cp -p $LOGDIR/FAI_CLASSES $FAI_ROOT/var/log/fai
+ [ -f $LOGDIR/variables.sh ] && cp -p $LOGDIR/variables.sh $FAI_ROOT/var/log/fai
+ [ "$diskvar" != "/var/log/fai/disk_var.sh" ] && cp -p $diskvar $FAI_ROOT/var/log/fai
fai-savelog -r
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -385,7 +385,7 @@
case $(uname -s) in
Linux)
killall -q sshd
- umount $target/proc
+ umount $FAI_ROOT/proc
umount -ar
exec reboot -dfi
;;
More information about the Fai-commit
mailing list