[Fai-commit] r3798 - trunk/bin
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Fri Aug 25 12:58:18 UTC 2006
Author: lange
Date: 2006-08-25 12:58:17 +0000 (Fri, 25 Aug 2006)
New Revision: 3798
Modified:
trunk/bin/fai
Log:
check if targetdir is specified when doing dirinst
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2006-08-24 17:19:51 UTC (rev 3797)
+++ trunk/bin/fai 2006-08-25 12:58:17 UTC (rev 3798)
@@ -193,6 +193,11 @@
[ "$2" ] && targetdir=$2 # only used for dirinst
if [ X$action = Xdirinst ]; then
+ if [ -z "$targetdir" ]; then
+ echo "Please specify a target directory. Aborted"
+ exit 3
+ fi
+
eval `grep NFSROOT= /etc/fai/make-fai-nfsroot.conf`
export NFSROOT
export FAI_ROOT=$targetdir
More information about the Fai-commit
mailing list