diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index 443d0133e..409ca2acc 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -266,6 +266,9 @@ do fi done +MEMTEST_PATH="${_INITRAMFS}/memtest" +sed -i -e "s#@MEMTEST_VERSION@#${LB_MEMTEST}#g" -e "s#@MEMTEST@#/${MEMTEST_PATH}#g" "${_TARGET}"/memtest.cfg + # Replace placeholder for optional install menu entries include if [ "${LB_DEBIAN_INSTALLER}" = "none" ]; then rm -f "${_TARGET}"/install.cfg @@ -275,7 +278,7 @@ else fi # Replace placeholder for optional memtest menu entry include -if [ ! -f "binary/${_INITRAMFS}/memtest" ]; then +if [ ! -f "binary/${MEMTEST_PATH}" ]; then rm -f "${_TARGET}"/memtest.cfg sed -i -e "#@OPTIONAL_MEMTEST_INCLUDE@#d" "${_TARGET}"/advanced.cfg else diff --git a/share/bootloaders/extlinux/memtest.cfg b/share/bootloaders/extlinux/memtest.cfg index e7e86e30b..99f4c33b1 100644 --- a/share/bootloaders/extlinux/memtest.cfg +++ b/share/bootloaders/extlinux/memtest.cfg @@ -1,4 +1,4 @@ label memtest - menu label ^Memory Diagnostic Tool (memtest86+) - menu title Memory Diagnostic Tool (memtest86+) - linux /live/memtest + menu label ^Memory Diagnostic Tool (@MEMTEST_VERSION@) + menu title Memory Diagnostic Tool (@MEMTEST_VERSION@) + linux @MEMTEST@ diff --git a/share/bootloaders/isolinux/memtest.cfg b/share/bootloaders/isolinux/memtest.cfg index e7e86e30b..99f4c33b1 100644 --- a/share/bootloaders/isolinux/memtest.cfg +++ b/share/bootloaders/isolinux/memtest.cfg @@ -1,4 +1,4 @@ label memtest - menu label ^Memory Diagnostic Tool (memtest86+) - menu title Memory Diagnostic Tool (memtest86+) - linux /live/memtest + menu label ^Memory Diagnostic Tool (@MEMTEST_VERSION@) + menu title Memory Diagnostic Tool (@MEMTEST_VERSION@) + linux @MEMTEST@ diff --git a/share/bootloaders/pxelinux/memtest.cfg b/share/bootloaders/pxelinux/memtest.cfg index e7e86e30b..99f4c33b1 100644 --- a/share/bootloaders/pxelinux/memtest.cfg +++ b/share/bootloaders/pxelinux/memtest.cfg @@ -1,4 +1,4 @@ label memtest - menu label ^Memory Diagnostic Tool (memtest86+) - menu title Memory Diagnostic Tool (memtest86+) - linux /live/memtest + menu label ^Memory Diagnostic Tool (@MEMTEST_VERSION@) + menu title Memory Diagnostic Tool (@MEMTEST_VERSION@) + linux @MEMTEST@ diff --git a/share/bootloaders/syslinux/memtest.cfg b/share/bootloaders/syslinux/memtest.cfg index e7e86e30b..99f4c33b1 100644 --- a/share/bootloaders/syslinux/memtest.cfg +++ b/share/bootloaders/syslinux/memtest.cfg @@ -1,4 +1,4 @@ label memtest - menu label ^Memory Diagnostic Tool (memtest86+) - menu title Memory Diagnostic Tool (memtest86+) - linux /live/memtest + menu label ^Memory Diagnostic Tool (@MEMTEST_VERSION@) + menu title Memory Diagnostic Tool (@MEMTEST_VERSION@) + linux @MEMTEST@