Remove ".img" from kernel image file name.
When an ISO is created with the kernel image file name ending in ".img", the ISO will not boot. In Qemu, the following error will be shown: FATAL: Int13 eltorito call with AX=4C00 This means a non-implemented BIOS entry was called. In VMware and on real hardware there is a different error message: Cannot load disk image (invalid file)? Removing the ".img" part of the file name solves this.
This commit is contained in:
parent
00aa1d0c28
commit
c7e50a404e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue