summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-10-20 16:13:20 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:47 +0100
commite5f7eea5db42bafb6be7ac8fb983f66936ad353d (patch)
treef93efc7a01a471018bfad46fdb95185e5f5055d3
parent5611d7306ef9f6efea6e1202ab5eaa1bac6f431b (diff)
downloadvyos-live-build-e5f7eea5db42bafb6be7ac8fb983f66936ad353d.tar.gz
vyos-live-build-e5f7eea5db42bafb6be7ac8fb983f66936ad353d.zip
Allow to enforce syslinux menu module through LH_SYSLINUX_MENU.
-rwxr-xr-xhelpers/lh_binary_syslinux20
1 files changed, 18 insertions, 2 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index b161a62af..c9f7b5ce6 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}