[PATCH] lh_binary_syslinux: drop .img off of kernel names so isolinux will boot
On Friday 19 October 2007, Jesse W. Hathaway wrote:
> diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
> index 68fa0f3..ac053f4 100755
> --- a/helpers/lh_binary_syslinux
> +++ b/helpers/lh_binary_syslinux
> @@ -102,10 +102,11 @@ 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
> - mv ${KERNEL_PATH}/${INITRD} ${KERNEL_PATH}/initrd${num}.img
> - KERNEL=vmlinuz${num}.img
> - INITRD=initrd${num}.img
> + # isolinux will not boot images which end in '.img'
> + mv ${KERNEL_PATH}/${KERNEL} ${KERNEL_PATH}/vmlinuz${num}
> + mv ${KERNEL_PATH}/${INITRD} ${KERNEL_PATH}/initrd${num}
> + KERNEL=vmlinuz${num}
> + INITRD=initrd${num}
> fi
>
> # Regular kernel
Note that it's not necessary to also drop ".img" from the initrd file name.
It might be more consistent to do so though.
About the comment line: I haven't tested whether it's the presence of the
dot or the total length of the file name that causes the problem.
Bye,
Maarten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071020/f538ad6a/attachment.pgp
Reply to: