summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelpers/lh_binary_syslinux5
1 files changed, 3 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index a6eb400..9e85f46 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -102,9 +102,10 @@ Syslinux_live_entry ()
then
num=$(ls -1 ${KERNEL_PATH}|grep 'vmlinuz.\.img$'|wc -l)
num=$(($num +1))
- mv ${KERNEL_PATH}/${KERNEL} ${KERNEL_PATH}/vmlinuz${num}.img
+ # Note: ISOLINUX will not find the kernel if the name ends in ".img".
+ mv ${KERNEL_PATH}/${KERNEL} ${KERNEL_PATH}/vmlinuz${num}
mv ${KERNEL_PATH}/${INITRD} ${KERNEL_PATH}/initrd${num}.img
- KERNEL=vmlinuz${num}.img
+ KERNEL=vmlinuz${num}
INITRD=initrd${num}.img
fi