[Fai-commit] r3843 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Mon Sep 4 17:05:56 UTC 2006


Author: lange
Date: 2006-09-04 17:05:56 +0000 (Mon, 04 Sep 2006)
New Revision: 3843

Modified:
   trunk/bin/make-fai-nfsroot
Log:
add option -V


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2006-09-04 15:37:15 UTC (rev 3842)
+++ trunk/bin/make-fai-nfsroot	2006-09-04 17:05:56 UTC (rev 3843)
@@ -42,12 +42,15 @@
     exit 9
 fi
 
+kfile="vmlinuz" # some architectures use different names
+kernelname="$kfile-install"
 merror="properly"
 # option e currently does nothing
-while getopts ervc:f:kK opt ; do
+while getopts ervc:f:kKV: opt ; do
     case "$opt" in
         c) cfdir=$OPTARG ;;
         v) verbose=1 ; v=-v ;;
+        V) kernelname=$OPTARG ;;
         r) recover=1 ;;
         f) die "Option -f is not supported any more. Use option -c instead" ;;
         k) kinstall=1 ;;
@@ -93,8 +96,6 @@
     exit 7
 fi
 
-kfile="vmlinuz"
-
 ROOTCMD="chroot $NFSROOT"
 
 RUNDIR=/var/run/fai/make-fai-nfsroot
@@ -377,7 +378,8 @@
 
     # pxe and dhcp environment
     local pxebin=/usr/lib/syslinux/pxelinux.0
-    cp -p $NFSROOT/boot/$kfile-$KERNELVERSION /srv/tftp/fai/$kfile-install
+    cp -p $NFSROOT/boot/$kfile-$KERNELVERSION /srv/tftp/fai/$kernelname
+    echo "Kernel $KERNELVERSION copied to /srv/tftp/fai/$kernelname"
     [ -f $pxebin ] && cp $pxebin /srv/tftp/fai
     [ -d /srv/tftp/fai/pxelinux.cfg ] || mkdir -p /srv/tftp/fai/pxelinux.cfg
     echo "DHCP environment prepared. If you want to use it, you have to enable the dhcpd and the tftp-hpa daemon."




More information about the Fai-commit mailing list