diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-02-20 08:25:26 +0000 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-03-05 11:39:57 +0000 |
commit | 3840ac200507d60be1278d4149882bee88261699 (patch) | |
tree | 188a34a00dd464b1975b75c637baf906ce839f77 /scripts/build | |
parent | fcafaede192e150daaf61591aef57edf3c2983fc (diff) | |
download | vyos-live-build-3840ac200507d60be1278d4149882bee88261699.tar.gz vyos-live-build-3840ac200507d60be1278d4149882bee88261699.zip |
memtest: better handle obsolete LB_MEMTEST value
available values currently are memtest86+|memtest86|none; "false" is
presumably handled for backwards compatibility
there is no need to handle this in individual scripts. the right place
to handle it is in Set_Defaults as now done
Gbp-Dch: Short
Closes: #952866
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/binary_memtest | 2 | ||||
-rwxr-xr-x | scripts/build/source_debian | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/build/binary_memtest b/scripts/build/binary_memtest index 96fb4f101..7c9864e65 100755 --- a/scripts/build/binary_memtest +++ b/scripts/build/binary_memtest @@ -24,7 +24,7 @@ Arguments "${@}" Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Set_defaults -if [ "${LB_MEMTEST}" = "false" ] || [ "${LB_MEMTEST}" = "none" ] || [ "${LB_CHROOT_FILESYSTEM}" = "none" ] +if [ "${LB_MEMTEST}" = "none" ] || [ "${LB_CHROOT_FILESYSTEM}" = "none" ] then exit 0 fi diff --git a/scripts/build/source_debian b/scripts/build/source_debian index 3960ea2a8..af9fe9f18 100755 --- a/scripts/build/source_debian +++ b/scripts/build/source_debian @@ -99,8 +99,7 @@ syslinux grub EOF - if [ "${LB_MEMTEST}" != "false" ] && [ "${LB_MEMTEST}" != "none" ] - then + if [ "${LB_MEMTEST}" != "none" ]; then echo "${LB_MEMTEST}" >> source-selection.txt fi ;; |