[Fai-commit] r4511 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sun Aug 19 17:40:42 UTC 2007


Author: lange
Date: 2007-08-19 17:40:41 +0000 (Sun, 19 Aug 2007)
New Revision: 4511

Modified:
   trunk/bin/fai-chboot
Log:
use the last entry when matching $tftproot/vmlinuz*


Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot	2007-08-19 16:09:56 UTC (rev 4510)
+++ trunk/bin/fai-chboot	2007-08-19 17:40:41 UTC (rev 4511)
@@ -28,7 +28,7 @@
 #*********************************************************************
 
 # variable needed: $nfsroot
-$version="version 3.3 18-july-2007";
+$version="version 3.4 19-august-2007";
 
 use Socket;
 use Net::hostent;
@@ -419,7 +419,7 @@
 chomp $tftproot;
 $tftproot = '/srv/tftp/fai' unless $tftproot;
 
-$kernelsuffix = (glob "$tftproot/vmlinuz*$opt_s")[0];
+$kernelsuffix = (glob "$tftproot/vmlinuz*$opt_s")[-1];
 $kernelsuffix=~ s/.+vmlinuz-//;
 
 if ($opt_i) {




More information about the Fai-commit mailing list