From f8b187c7a99eb6a180dccc127bd89f77077b1747 Mon Sep 17 00:00:00 2001 From: "Cody A.W. Somerville" Date: Thu, 12 Nov 2009 06:42:04 +0100 Subject: Omit numbering for first kernel and initrd installed into binary. --- helpers/lh_binary_syslinux | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index 96ac452..73a8a30 100755 --- a/helpers/lh_binary_syslinux +++ b/helpers/lh_binary_syslinux @@ -94,6 +94,12 @@ Syslinux_live_entry () NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz[0-9]\+$' | wc -l)" NUMBER="$((${NUMBER} +1))" + # Do not add numbering to filenames if first kernel/initrd + if [ "${NUMBER}" = "1" ] + then + NUMBER="" + fi + # Note: ISOLINUX will not find the kernel if the name ends in ".img". mv ${KERNEL_PATH}/${KERNEL} ${KERNEL_PATH}/vmlinuz${NUMBER} mv ${KERNEL_PATH}/${INITRD} ${KERNEL_PATH}/initrd${NUMBER}.img -- cgit v1.0