diff options
author | Michael Janczyk | 2006-07-06 15:42:20 +0200 |
---|---|---|
committer | Michael Janczyk | 2006-07-06 15:42:20 +0200 |
commit | 35e0506e11b1c23077d34298976261e6046a5868 (patch) | |
tree | bf46adf1e0f0759763cb739110ccb8a3d7524487 /installer | |
parent | added testfiles ;) (diff) | |
download | core-35e0506e11b1c23077d34298976261e6046a5868.tar.gz core-35e0506e11b1c23077d34298976261e6046a5868.tar.xz core-35e0506e11b1c23077d34298976261e6046a5868.zip |
bugfix in pxemenu creation
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@274 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/ld4-inst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/installer/ld4-inst b/installer/ld4-inst index a82bd8e5..c4b95ae0 100755 --- a/installer/ld4-inst +++ b/installer/ld4-inst @@ -5,10 +5,11 @@ # # Author(s): Nico Dietrich, 04-04-2006 # Dirk von Suchodoletz <dirk@goe.net>, 20-05-2006 +# mj0, 06-07-06 # # Copyright: (c) 2003, 2006 - RZ Universitaet Freiburg # -# Version: 0.2.1a +# Version: 0.2.1b DEBUG=0 header() { @@ -349,8 +350,9 @@ created and linked to ${tftpbootdir}." echo "$j: ${kernel[$j]}" j=$j+1 done - ask "Please chose kernels to create initial ramdisks for (space \ -separated numbers) " kernel_choice "${kernel_choice}" + ask "Please chose kernel(s) to create initial ramdisk(s) for. +First named will be the default boot. Separate multiple kernels w/ space." \ +kernel_choice "${kernel_choice}" fi choice=( ${kernel_choice} ) # make sure /$tftbootdir exists @@ -430,7 +432,7 @@ ${rootdir} ${netname}/${netmask}(ro,no_root_squash,async)" \ declare -i j=0 while [ $j -lt ${#choice[@]} ] ; do - current_kernel=${kernel[$j]#${rootdir}/boot/vmlinuz-} + current_kernel=${kernel[${choice[$j]}]#${rootdir}/boot/vmlinuz-} current_initrd=${tftpbootdir}/initrd-dxs-${current_kernel} if [ $j -eq 0 ] ; then |