summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_syslinux
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2009-09-11 09:45:39 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:47 +0100
commit4df03e20127563d9534928445b8e8af0e066fa92 (patch)
tree769e8af76e4c0f91a3665a1d759ce3a934b5e0a9 /helpers/lh_binary_syslinux
parentc082430348b65d2c2497c3f8c37ded7b101e537c (diff)
downloadlive-build-4df03e20127563d9534928445b8e8af0e066fa92.zip
live-build-4df03e20127563d9534928445b8e8af0e066fa92.tar.gz
Only add available install frontend boot entries.
Diffstat (limited to 'helpers/lh_binary_syslinux')
-rwxr-xr-xhelpers/lh_binary_syslinux11
1 files changed, 9 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index d69b8a0..b161a62 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -548,8 +548,15 @@ then
INITRD_GI="gtk/initrd.gz"
APPEND_GI="video=vesa:ywrap,mtrr vga=788"
- Syslinux_install_entry "Text" "${VMLINUZ_DI}" "${INITRD_DI}" "${APPEND_DI}"
- Syslinux_install_entry "GUI" "${VMLINUZ_GI}" "${INITRD_GI}" "${APPEND_GI}"
+ if [ -f "binary/${LIVE_INSTALL_KERNEL_PATH}/${VMLINUZ_DI}" ] && [ -f "binary/${LIVE_INSTALL_KERNEL_PATH}/${INITRD_DI}" ]
+ then
+ Syslinux_install_entry "Text" "${VMLINUZ_DI}" "${INITRD_DI}" "${APPEND_DI}"
+ fi
+
+ if [ -f "binary/${LIVE_INSTALL_KERNEL_PATH}/${VMLINUZ_GI}" ] && [ -f "binary/${LIVE_INSTALL_KERNEL_PATH}/${INITRD_GI}" ]
+ then
+ Syslinux_install_entry "GUI" "${VMLINUZ_GI}" "${INITRD_GI}" "${APPEND_GI}"
+ fi
fi
# Assembling memtest configuration