summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorFelix Endres2006-04-28 23:30:09 +0200
committerFelix Endres2006-04-28 23:30:09 +0200
commit7286dfbdfab5fe2b3bb4dda3366c53370339a736 (patch)
tree0291c64efb66251251d70ec2d4fbcb3ee60fdc6e /installer
parenthopefully solved vmware/usb issue for SuSE9.3,10.0,10.1 (linux should (diff)
downloadcore-7286dfbdfab5fe2b3bb4dda3366c53370339a736.tar.gz
core-7286dfbdfab5fe2b3bb4dda3366c53370339a736.tar.xz
core-7286dfbdfab5fe2b3bb4dda3366c53370339a736.zip
Bug at kernel choice fixed
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@202 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/ld4-inst5
1 files changed, 2 insertions, 3 deletions
diff --git a/installer/ld4-inst b/installer/ld4-inst
index 37e2a36d..2c8c57a6 100755
--- a/installer/ld4-inst
+++ b/installer/ld4-inst
@@ -325,7 +325,6 @@ create_initrd() {
ask "Please chose kernels to create initial ramdisks for (space separated numbers) " kernel_choice "${kernel_choice}"
fi
choice=( ${kernel_choice} )
-
# make sure /$tftbootdir exists
mkdir -p ${tftpbootdir}
@@ -341,13 +340,13 @@ create_initrd() {
# ugly workaround...
cd ../initrd
while [ $j -lt ${#choice[@]} ] ; do
- current_kernel=${kernel[$j]#${rootdir}/boot/vmlinuz-}
+ current_kernel=${kernel[${choice[$j]}]#${rootdir}/boot/vmlinuz-}
echo "Creating initial ramdisk for ${current_kernel}"
current_initrd=${tftpbootdir}/initrd-dxs-${current_kernel}
[ -f ${current_initrd} ] && rm ${current_initrd}
./mkdxsinitrd -r ${rootdir} -k ${current_kernel} -i ${current_initrd}
- ln -sf ${kernel[$j]} ${tftpbootdir}/vmlinuz-${current_kernel}
+ ln -sf ${kernel[${choice[$j]}]} ${tftpbootdir}/vmlinuz-${current_kernel}
j=$j+1
done
cd -