diff options
author | Daniel Baumann <daniel@debian.org> | 2009-11-15 15:36:20 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:49 +0100 |
commit | 91b9dab63795596ebd1f4bf9666a2ac2d5e2d140 (patch) | |
tree | 4562be82a707df7e86cd5b8e087751740f4943f1 /helpers/lh_binary_syslinux | |
parent | 18afcd29eb05d316d4bec279a45b503f273875aa (diff) | |
download | live-build-91b9dab63795596ebd1f4bf9666a2ac2d5e2d140.zip live-build-91b9dab63795596ebd1f4bf9666a2ac2d5e2d140.tar.gz |
Adding syslinux hardcoded default label entries.
Diffstat (limited to 'helpers/lh_binary_syslinux')
-rwxr-xr-x | helpers/lh_binary_syslinux | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index 0501996..154306f 100755 --- a/helpers/lh_binary_syslinux +++ b/helpers/lh_binary_syslinux @@ -101,8 +101,15 @@ Syslinux_live_entry () 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 + if [ -e ${KERNEL_PATH}/${KERNEL} ] + then + mv ${KERNEL_PATH}/${KERNEL} ${KERNEL_PATH}/vmlinuz${NUMBER} + fi + + if [ -e ${KERNEL_PATH}/${INITRD} ] + then + mv ${KERNEL_PATH}/${INITRD} ${KERNEL_PATH}/initrd${NUMBER}.img + fi KERNEL=vmlinuz${NUMBER} INITRD=initrd${NUMBER}.img @@ -113,7 +120,11 @@ Syslinux_live_entry () LINUX_LIVE="${LINUX_LIVE}\nlabel ${LABEL}\n" # Write the menu label if the syslinux menu is being use - LINUX_LIVE="${LINUX_LIVE}\tmenu label ${MENULABEL}\n" + if [ -n "${MENULABEL}" ] + then + LINUX_LIVE="${LINUX_LIVE}\tmenu label ${MENULABEL}\n" + fi + LINUX_LIVE="${LINUX_LIVE}\tkernel ${LIVE_KERNEL_PATH}/${KERNEL}\n" LINUX_LIVE="${LINUX_LIVE}\tappend initrd=${LIVE_KERNEL_PATH}/${INITRD} boot=${INITFS} ${LH_BOOTAPPEND_LIVE} ${APPEND}\n" @@ -121,7 +132,11 @@ Syslinux_live_entry () LINUX_LIVE="${LINUX_LIVE}\nlabel ${LABEL}failsafe\n" # Write the menu label if the syslinux menu is being use - LINUX_LIVE="${LINUX_LIVE}\tmenu label ${MENULABEL} (failsafe)\n" + if [ -n "${MENULABEL}" ] + then + LINUX_LIVE="${LINUX_LIVE}\tmenu label ${MENULABEL} (failsafe)\n" + fi + LINUX_LIVE="${LINUX_LIVE}\tkernel ${LIVE_KERNEL_PATH}/${KERNEL}\n" LINUX_LIVE="${LINUX_LIVE}\tappend initrd=${LIVE_KERNEL_PATH}/${INITRD} boot=${INITFS} ${LH_BOOTAPPEND_LIVE} ${APPEND} ${FAILSAFE}\n" } @@ -575,6 +590,9 @@ then done fi +# Adding syslinux hardcoded default label entry +Syslinux_live_entry "linux" "" "${DEFAULT_KERNEL}" "${DEFAULT_INITRD}" + # Assembling debian-installer configuration if [ "${LH_DEBIAN_INSTALLER}" != "disabled" ] then |