[Fai-commit] r6685 - trunk/debian

Michael Prokop mika at alioth.debian.org
Tue Oct 11 15:15:14 UTC 2011


Author: mika
Date: 2011-10-11 15:15:13 +0000 (Tue, 11 Oct 2011)
New Revision: 6685

Modified:
   trunk/debian/fai-quickstart.postinst
Log:
fai-quickstart.postinst: make sure FAI_CONFIGDIR is set, otherwise inform user

Natxo Asenjo stumbled upon this issue and reported it on the FAI
user mailing list. Let's make sure FAI_CONFIGDIR is defined in
/etc/fai/make-fai-nfsroot.conf, otherwise exit with an according
warning message.

From: Michael Prokop <mika at grml.org>

Modified: trunk/debian/fai-quickstart.postinst
===================================================================
--- trunk/debian/fai-quickstart.postinst	2011-10-10 14:29:29 UTC (rev 6684)
+++ trunk/debian/fai-quickstart.postinst	2011-10-11 15:15:13 UTC (rev 6685)
@@ -26,6 +26,14 @@
 	fi
 
 	. /etc/fai/make-fai-nfsroot.conf
+
+	if [ -z "$FAI_CONFIGDIR" ] ; then
+	    echo "WARNING: \$FAI_CONFIGDIR is NOT defined in /etc/fai/make-fai-nfsroot.conf."
+	    echo "NOT doing any further configuration - please copy the configspace yourself"
+	    echo "The simple examples are available at /usr/share/doc/fai-doc/examples/simple/"
+	    exit 0
+	fi
+
 	if [ ! -d $FAI_CONFIGDIR/class ]; then
 	    mkdir -p $FAI_CONFIGDIR
 	    cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR




More information about the Fai-commit mailing list