[Fai-commit] r3933 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Tue Sep 12 19:26:26 UTC 2006


Author: lange
Date: 2006-09-12 19:26:26 +0000 (Tue, 12 Sep 2006)
New Revision: 3933

Modified:
   trunk/bin/fai-chboot
Log:
abort if $pxedir does not exist (closes: #373596)


Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot	2006-09-12 19:16:23 UTC (rev 3932)
+++ trunk/bin/fai-chboot	2006-09-12 19:26:26 UTC (rev 3933)
@@ -28,7 +28,7 @@
 #*********************************************************************
 
 # variable needed: $nfsroot
-$version="version 3.0 5-sep-2006";
+$version="version 3.1 12-sep-2006";
 
 use Socket;
 use Net::hostent;
@@ -349,6 +349,8 @@
 ($opt_S and $opt_I) && die "ERROR: use only one option out of -I and -S\n";
 #TODO: also -e, -r and -c can't be used together
 
+(-d $pxedir) || die "PXE directory $pxedir does not exist."
+
 if ($opt_d) {
   die "Missing host name(s). Can't disable network booting.\n" unless @ARGV;
   foreach (@ARGV) {




More information about the Fai-commit mailing list