[Fai-commit] r3331 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Mon Mar 27 21:14:49 UTC 2006


Author: lange
Date: 2006-03-27 21:14:48 +0000 (Mon, 27 Mar 2006)
New Revision: 3331

Modified:
   trunk/bin/fai-mirror
Log:
add warning if some files do not exist


Modified: trunk/bin/fai-mirror
===================================================================
--- trunk/bin/fai-mirror	2006-03-27 16:00:50 UTC (rev 3330)
+++ trunk/bin/fai-mirror	2006-03-27 21:14:48 UTC (rev 3331)
@@ -6,7 +6,7 @@
 # fai-mirror -- create and manage a partitial mirror for FAI
 #
 # This script is part of FAI (Fully Automatic Installation)
-# (c) 2004-2005, Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2004-2006, Thomas Lange, lange at informatik.uni-koeln.de
 #
 #*********************************************************************
 # This program is free software; you can redistribute it and/or modify
@@ -25,7 +25,7 @@
 # MA 02111-1307, USA.
 #*********************************************************************
 
-version="Version 1.4.3, 2-dec-2005"
+version="Version 1.4.4, 27-march-2006"
 
 # variables: NFSROOT, FAI_CONFIGDIR
 # NFSROOT_PACKAGES, packages from make-fai-nfsroot.conf
@@ -182,12 +182,18 @@
     if [ -f $NFSROOT/var/tmp/base-pkgs.lis ]; then
 	plist=$(< $NFSROOT/var/tmp/base-pkgs.lis)
 	apt-get $qflag -d $aptoptions -y --force-yes --fix-missing install $plist
+    else
+	echo "WARNING: $NFSROOT/var/tmp/base-pkgs.lis does not exists."
+	echo "Can't add those packages. Maybe the nfsroot is not yet created."
     fi
 
     # arch dependent packages defined in make-fai-nfsroot
     if [ -f $NFSROOT/var/tmp/packages.arch ]; then
 	plist=$(< $NFSROOT/var/tmp/packages.arch)
 	apt-get $qflag -d $aptoptions -y --force-yes --fix-missing install $plist
+    else
+	echo "WARNING: $NFSROOT/var/tmp/packages.arch does not exists."
+	echo "Can't add those packages. Maybe the nfsroot is not yet created."
     fi
 
     # also add packages defined in make-fai-nfsroot.conf




More information about the Fai-commit mailing list