summaryrefslogtreecommitdiff
path: root/scripts/build/binary_syslinux
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-04 16:12:45 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-04 21:40:13 +0100
commitd7883ec32b2bb907fce17fb759c08c5cd9851fc3 (patch)
tree94b2294140e7c902a33e0262aa6adf5a1d07b98e /scripts/build/binary_syslinux
parent3f840aeeba982a858a881271a3bb48bca5b50dd8 (diff)
downloadvyos-live-build-d7883ec32b2bb907fce17fb759c08c5cd9851fc3.tar.gz
vyos-live-build-d7883ec32b2bb907fce17fb759c08c5cd9851fc3.zip
config: improve BIOS/EFI bootloader selection handling
the design choice from when EFI support was introduced was to change `--bootloader` to `--bootloaders`, with users specifying their selection of BIOS and EFI bootloaders together. at this time there were not even any decent validation checks being performed, and invalid combinations could cause some chaos. since then proper validation was put in place, including checking that only a single instance of each of BIOS and EFI bootloaders exists in the selection. here we tweak things such that we stick with the same option, but we split the selection up such that we store the BIOS and EFI selections separately within the saved config file, and offer it up to scripts to help simplify those scripts. we must however retain support for splitting from the combined option, both because we still use it in the combined option, and for backwards compatibility with older saved configs. Gbp-Dch: Short
Diffstat (limited to 'scripts/build/binary_syslinux')
-rwxr-xr-xscripts/build/binary_syslinux2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index 2374d5c55..d4f4bf272 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -21,7 +21,7 @@ USAGE="${PROGRAM} [--force]"
# Processing arguments and configuration files
Init_config_data "${@}"
-if ! In_list "syslinux" $LB_BOOTLOADERS; then
+if [ "${LB_BOOTLOADER_BIOS}" != "syslinux" ]; then
exit 0
fi