diff options
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 b85e56774..443d0133e 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -274,6 +274,14 @@ else sed -i "s#@OPTIONAL_INSTALLER_INCLUDE@#include install.cfg#g" "${_TARGET}"/menu.cfg fi +# Replace placeholder for optional memtest menu entry include +if [ ! -f "binary/${_INITRAMFS}/memtest" ]; then + rm -f "${_TARGET}"/memtest.cfg + sed -i -e "#@OPTIONAL_MEMTEST_INCLUDE@#d" "${_TARGET}"/advanced.cfg +else + sed -i -e "s#@OPTIONAL_MEMTEST_INCLUDE@#include memtest.cfg#g" "${_TARGET}"/advanced.cfg +fi + if [ -e "${_TARGET}/splash.svg" ] then case "${LB_BUILD_WITH_CHROOT}" in |