[Fai-commit] r5990 - in branches/stable/3.4: bin debian lib

Michael Prokop mika at alioth.debian.org
Tue Aug 17 12:54:36 UTC 2010


Author: mika
Date: 2010-08-17 12:54:36 +0000 (Tue, 17 Aug 2010)
New Revision: 5990

Modified:
   branches/stable/3.4/bin/fai
   branches/stable/3.4/debian/changelog
   branches/stable/3.4/lib/subroutines
Log:
subroutines, fai: display date of execution (fai_rundate) on startup


Signed-off-by: Michael Prokop <mika at grml.org>

Modified: branches/stable/3.4/bin/fai
===================================================================
--- branches/stable/3.4/bin/fai	2010-08-17 12:54:31 UTC (rev 5989)
+++ branches/stable/3.4/bin/fai	2010-08-17 12:54:36 UTC (rev 5990)
@@ -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: branches/stable/3.4/debian/changelog
===================================================================
--- branches/stable/3.4/debian/changelog	2010-08-17 12:54:31 UTC (rev 5989)
+++ branches/stable/3.4/debian/changelog	2010-08-17 12:54:36 UTC (rev 5990)
@@ -34,6 +34,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: branches/stable/3.4/lib/subroutines
===================================================================
--- branches/stable/3.4/lib/subroutines	2010-08-17 12:54:31 UTC (rev 5989)
+++ branches/stable/3.4/lib/subroutines	2010-08-17 12:54:36 UTC (rev 5990)
@@ -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