[Fai-commit] r4492 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sun Aug 12 10:41:23 UTC 2007


Author: lange
Date: 2007-08-12 10:41:23 +0000 (Sun, 12 Aug 2007)
New Revision: 4492

Modified:
   trunk/bin/fai
Log:
when doing dirinstall -c or -N must be specified (closes: #429554)


Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai	2007-08-11 17:17:32 UTC (rev 4491)
+++ trunk/bin/fai	2007-08-12 10:41:23 UTC (rev 4492)
@@ -214,6 +214,12 @@
 	echo "Please specify a target directory. Aborted"
 	exit 3
     fi
+    if [ $renewclass -eq 0 -a -z "$cmdlineclasses" ]; then
+	echo "Please use -c or -N. Aborted"
+	exit 4
+    fi
+
+
     export NFSROOT=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $NFSROOT)
     export FAI_DEBOOTSTRAP=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP)
     export FAI_DEBOOTSTRAP_OPT=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP_OPT)




More information about the Fai-commit mailing list