[Fai-commit] r5840 - in trunk: bin debian lib
Michael Prokop
mika at alioth.debian.org
Sun Jul 4 13:25:25 UTC 2010
Author: mika
Date: 2010-07-04 13:25:19 +0000 (Sun, 04 Jul 2010)
New Revision: 5840
Modified:
trunk/bin/fai
trunk/debian/changelog
trunk/lib/subroutines
Log:
subroutines, fai: display date of execution (fai_rundate) on startup
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2010-07-04 13:17:51 UTC (rev 5839)
+++ trunk/bin/fai 2010-07-04 13:25:19 UTC (rev 5840)
@@ -299,6 +299,11 @@
chmod 0750 $LOGDIR
fai_init
+
+if [ $do_init_tasks -ne 1 ]; then
+ echo "Starting FAI execution - $fai_rundate" | tee -a $LOGDIR/fai.log
+fi
+
[ -n "$newhostname" ] && echo "Hostname set to $HOSTNAME" | tee -a $LOGDIR/fai.log
unset newhostname
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2010-07-04 13:17:51 UTC (rev 5839)
+++ trunk/debian/changelog 2010-07-04 13:25:19 UTC (rev 5840)
@@ -35,6 +35,7 @@
* install_packages: support retrieving sources for Debian based
systems using the -s option
* install_packages.8: fix wording of description of -N option
+ * subroutines, fai: display date of execution (fai_rundate) on startup
-- Thomas Lange <lange at debian.org> Fri, 25 Jun 2010 14:29:10 +0200
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2010-07-04 13:17:51 UTC (rev 5839)
+++ trunk/lib/subroutines 2010-07-04 13:25:19 UTC (rev 5840)
@@ -258,6 +258,9 @@
# when did FAI start, using localtime
: ${fai_rundate:=$(date +'%Y%m%d_%H%M%S')}
+ if [ $do_init_tasks -eq 1 ]; then
+ echo "Starting FAI execution - $fai_rundate"
+ fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### BEGIN SUBROUTINE INFO
More information about the Fai-commit
mailing list