diff options
author | jnqnfe <jnqnfe@gmail.com> | 2015-01-15 04:41:16 +0000 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-16 23:08:26 +0000 |
commit | 7ffd2288d944840937f556bd56703ba381f4edcc (patch) | |
tree | a7c6055d671a6eb970d9e7878162cc29bdc5ae87 /scripts/build/binary_syslinux | |
parent | 0bf9d2d390e2d031ebe344050d8766ba7cd9ad54 (diff) | |
download | vyos-live-build-7ffd2288d944840937f556bd56703ba381f4edcc.tar.gz vyos-live-build-7ffd2288d944840937f556bd56703ba381f4edcc.zip |
syslinux: add install menu entries only if including installer
Diffstat (limited to 'scripts/build/binary_syslinux')
-rwxr-xr-x | scripts/build/binary_syslinux | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index ba2b2edae..b85e56774 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -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 |