syslinux: add install menu entries only if including installer
This commit is contained in:
parent
0bf9d2d390
commit
7ffd2288d9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue