[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[patch] returning to menu in syslinux



Hi

When using isolinux, the default is to start in the fancy vesa menu.
With the 'help' entry in menu.cfg the user jumps to prompt.cfg .

prompt.cfg includes exithelp.cfg with an entry to go back to the menu:

label menu
        kernel {$LIVE_DATA_PATH}/vesamenu.c32
	config isolinux.cfg

This indeed works well. As long as you use isolinux. With syslinux
(e.g.: on the usb-hdd) you need to have 'syslinux.cfg' in the last line
of that file.

The attached patch does this in a rather non-elegant-but-working manner.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen@xorcom.com
+972-50-7952406           mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 310b879..740db59 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -293,6 +293,7 @@ Configure_syslinux_templates ()
 		       -e "s|{\$LH_SYSLINUX_TIMEOUT}|${LH_SYSLINUX_TIMEOUT}0|" \
 		$template_file
 	done
+	sed -i -e 's/isolinux.cfg/syslinux.cfg/' ${SYSLINUX_PATH}/exithelp.cfg
 
 	# Syslinux v3.31 in etch does not support include statements
 	if [ "${LH_DISTRIBUTION}" = "etch" ]

Reply to: