diff options
author | Maarten ter Huurne <maarten@treewalker.org> | 2007-10-27 03:13:29 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:28 +0100 |
commit | 4046c781f8f7d5ec9c49ab00d485a7ff4a7847ec (patch) | |
tree | c6d2a87688463c512f85e8fdd2c0b9dad5a7ed5c | |
parent | a7491e13497b24d20517535ae7c767c7f32c40a1 (diff) | |
download | vyos-live-build-4046c781f8f7d5ec9c49ab00d485a7ff4a7847ec.tar.gz vyos-live-build-4046c781f8f7d5ec9c49ab00d485a7ff4a7847ec.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.
-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 |