syslinux: use more dynamic memtest menu config file
Fixes the following - Correct version (memtest86/memtest86+) shown instead of fixed 'memtest86+' text - Ensure correct directory path always used by using replaceable placeholder Gbp-Dch: Short
This commit is contained in:
parent
31fa6abd36
commit
38af959aa5
|
@ -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
|
||||
|
|
|
@ -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@
|
||||
|
|
|
@ -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@
|
||||
|
|
|
@ -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@
|
||||
|
|
|
@ -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@
|
||||
|
|
Loading…
Reference in New Issue