diff options
author | Maarten ter Huurne <maarten@treewalker.org> | 2007-10-27 03:13:29 +0200 |
---|---|---|
committer | Maarten ter Huurne <maarten@treewalker.org> | 2007-10-27 20:38:15 +0200 |
commit | c7e50a404e1dff95187ca4422b49dda80179fd44 (patch) | |
tree | c6d2a87688463c512f85e8fdd2c0b9dad5a7ed5c /helpers | |
parent | 00aa1d0c28de2895246a70c2beb09cd1e7e6cd13 (diff) | |
download | vyos-live-build-c7e50a404e1dff95187ca4422b49dda80179fd44.tar.gz vyos-live-build-c7e50a404e1dff95187ca4422b49dda80179fd44.zip |
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.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_syslinux | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index a6eb4000f..9e85f4612 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 |