summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
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 -