Subject: Remove ".img" from kernel image file name.

From: Maarten ter Huurne <[email-masked]>
Date: Sat, 27 Oct 2007 03:13:29 +0200

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.
---
 helpers/lh_binary_syslinux | 5 +++--
 1 file 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
 
-- 
cgit v1.0