[Fai-commit] r4837 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Wed Jan 16 11:26:40 UTC 2008


Author: lange
Date: 2008-01-16 11:26:40 +0000 (Wed, 16 Jan 2008)
New Revision: 4837

Modified:
   trunk/bin/fai-chboot
Log:
add check if kernelsuffix is defined 


Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot	2008-01-07 19:33:00 UTC (rev 4836)
+++ trunk/bin/fai-chboot	2008-01-16 11:26:40 UTC (rev 4837)
@@ -6,7 +6,7 @@
 # fai-chboot -- manage configuration for network boot
 #
 # This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2003-2007 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2003-2008 Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -28,7 +28,7 @@
 #*********************************************************************
 
 # variable needed: $nfsroot
-$version="version 3.4.3 15-november-2007";
+$version="version 3.4.4 16-january-2008";
 
 use Socket;
 use Net::hostent;
@@ -425,6 +425,7 @@
 
 $kernelsuffix = (glob "$tftproot/vmlinuz*$opt_s")[-1];
 $kernelsuffix=~ s/.+vmlinuz-//;
+die "No kernel found matching $tftproot/vmlinuz*$opt_s\n" unless $kernelsuffix;
 
 if ($opt_i) {
   # create config so host will boot the install kernel




More information about the Fai-commit mailing list