syslinux: add install menu entries only if including installer

This commit is contained in:
jnqnfe 2015-01-15 04:41:16 +00:00 committed by Lyndon Brown
parent 0bf9d2d390
commit 7ffd2288d9
5 changed files with 12 additions and 4 deletions

View File

@ -266,6 +266,14 @@ do
fi
done
# Replace placeholder for optional install menu entries include
if [ "${LB_DEBIAN_INSTALLER}" = "none" ]; then
rm -f "${_TARGET}"/install.cfg
sed -i "#@OPTIONAL_INSTALLER_INCLUDE@#d" "${_TARGET}"/menu.cfg
else
sed -i "s#@OPTIONAL_INSTALLER_INCLUDE@#include install.cfg#g" "${_TARGET}"/menu.cfg
fi
if [ -e "${_TARGET}/splash.svg" ]
then
case "${LB_BUILD_WITH_CHROOT}" in

View File

@ -4,7 +4,7 @@ menu width 82
menu title Boot menu
include stdmenu.cfg
include live.cfg
include install.cfg
@OPTIONAL_INSTALLER_INCLUDE@
menu begin advanced
menu label ^Advanced options
menu title Advanced options

View File

@ -4,7 +4,7 @@ menu width 82
menu title Boot menu
include stdmenu.cfg
include live.cfg
include install.cfg
@OPTIONAL_INSTALLER_INCLUDE@
menu begin advanced
menu label ^Advanced options
menu title Advanced options

View File

@ -4,7 +4,7 @@ menu width 82
menu title Boot menu
include stdmenu.cfg
include live.cfg
include install.cfg
@OPTIONAL_INSTALLER_INCLUDE@
menu begin advanced
menu label ^Advanced options
menu title Advanced options

View File

@ -4,7 +4,7 @@ menu width 82
menu title Boot menu
include stdmenu.cfg
include live.cfg
include install.cfg
@OPTIONAL_INSTALLER_INCLUDE@
menu begin advanced
menu label ^Advanced options
menu title Advanced options