[Fai-commit] r6505 - trunk/bin

Thomas Lange lange at alioth.debian.org
Tue Apr 26 12:32:03 UTC 2011


Author: lange
Date: 2011-04-26 12:31:32 +0000 (Tue, 26 Apr 2011)
New Revision: 6505

Modified:
   trunk/bin/make-fai-nfsroot
Log:
print message if xz is still running


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2011-04-26 10:13:39 UTC (rev 6504)
+++ trunk/bin/make-fai-nfsroot	2011-04-26 12:31:32 UTC (rev 6505)
@@ -6,7 +6,7 @@
 # make-fai-nfsroot -- create nfsroot directory and add additional packages
 #
 # This script is part of FAI (Fully Automatic Installation)
-# (c) 2000-2010 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2000-2011 by Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 # (c) 2004      by Henning Glawe, glaweh at physik.fu-berlin.de
 # Freie Universitaet Berlin
@@ -558,7 +558,11 @@
 run_hooks
 check_nfsroot
 umount_dirs
-# print warning if xz is still running
+
+if [ -n "$xzpid" ]; then
+    ps -p $xzpid >/dev/null 2>&1
+    [ $? -eq 1 ] &&  echo "xz compression of $NFSROOT/var/tmp/base.tar is still running in the background."
+fi
 echo "make-fai-nfsroot finished $merror."
 exit 0
 } 2>&1 | tee -a /var/log/fai/make-fai-nfsroot.log




More information about the Fai-commit mailing list