Bug#533846: live-helper: grab menu binary file name from alternate syslinux.cfg if LH_SYSLINUX_CFG specified
Package: live-helper
Version: 1.0.4-1
Severity: wishlist
Tags: patch
The following patch modifies lh_binary_syslinux to grab menu binary file
from $LH_SYSLINUX_CFG file if specified. This allows to specify menu.c32
in syslinux configuration file instead of vesamenu.c32.
--- lh_binary_syslinux.orig 2009-06-21 00:28:15.000000000 +0400
+++ /usr/bin/lh_binary_syslinux 2009-06-21 00:48:18.000000000 +0400
@@ -180,7 +180,13 @@
cp "${TEMPLATES}"/menu/* ${SCREEN_PATH}
# Grab menu binary
- MENUMODULE=$(grep 'menu.c32' ${TEMPLATES}/menu/syslinux.cfg | sed 's|default\s*.*/\(.*menu.c32\)$|\1|g')
+ if [ -n "$LH_SYSLINUX_CFG" ]
+ then
+ FILE="$LH_SYSLINUX_CFG"
+ else
+ FILE=${TEMPLATES}/menu/syslinux.cfg
+ fi
+ MENUMODULE=$(grep 'menu.c32' "$FILE" | sed 's|default\s*.*/\(.*menu.c32\)$|\1|g')
case "${LH_CHROOT_BUILD}" in
enabled)
cp chroot/usr/lib/syslinux/"${MENUMODULE}" ${DATA_PATH}
-- Package-specific info:
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages live-helper depends on:
ii debootstrap 1.0.10lenny1 Bootstrap a basic Debian system
Versions of packages live-helper recommends:
ii gettext-base 0.17-6 GNU Internationalization utilities
Versions of packages live-helper suggests:
ii dosfstools 3.0.3-1 utilities for making and checking
ii fakeroot 1.12.2 Gives a fake root environment
ii genisoimage 9:1.1.9-1 Creates ISO-9660 CD-ROM filesystem
ii grub 0.97-53 GRand Unified Bootloader (Legacy v
ii memtest86 3.5-2 thorough real-mode memory tester
ii mtd-utils [mtd-tools] 20090606-1 Memory Technology Device Utilities
ii mtools 4.0.10-1 Tools for manipulating MSDOS files
pn parted <none> (no description available)
ii squashfs-tools 1:3.3-7 Tool to create and append to squas
ii sudo 1.7.0-1 Provide limited super user privile
ii syslinux 2:3.81+dfsg-1 utilities for the syslinux bootloa
ii uuid-runtime 1.41.3-1 universally unique id library
pn win32-loader <none> (no description available)
-- no debconf information
Reply to: