diff options
author | Daniel Baumann <daniel@debian.org> | 2009-10-20 16:13:20 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:47 +0100 |
commit | e5f7eea5db42bafb6be7ac8fb983f66936ad353d (patch) | |
tree | f93efc7a01a471018bfad46fdb95185e5f5055d3 /helpers | |
parent | 5611d7306ef9f6efea6e1202ab5eaa1bac6f431b (diff) | |
download | live-build-e5f7eea5db42bafb6be7ac8fb983f66936ad353d.zip live-build-e5f7eea5db42bafb6be7ac8fb983f66936ad353d.tar.gz |
Allow to enforce syslinux menu module through LH_SYSLINUX_MENU.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_binary_syslinux | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux index b161a62..c9f7b5c 100755 --- a/helpers/lh_binary_syslinux +++ b/helpers/lh_binary_syslinux @@ -179,8 +179,24 @@ Copy_syslinux_templates () else cp "${TEMPLATES}"/menu/* ${SCREEN_PATH} - # Grab menu binary - MENUMODULE=$(grep 'menu.c32' ${TEMPLATES}/menu/syslinux.cfg | sed 's|default\s*.*/\(.*menu.c32\)$|\1|g') + case "${LH_SYSLINUX_MENU}" in + gfxboot) + # to be implemented + ;; + + menu) + MENUMODULE="menu.c32" + ;; + + vesamenu) + MENUMODULE="vesamenu.c32" + ;; + + *) + MENUMODULE=$(grep 'menu.c32' ${TEMPLATES}/menu/syslinux.cfg | sed 's|default\s*.*/\(.*menu.c32\)$|\1|g') + ;; + esac + case "${LH_CHROOT_BUILD}" in enabled) cp chroot/usr/lib/syslinux/"${MENUMODULE}" ${DATA_PATH} |