diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-04 14:28:37 +0100 |
---|---|---|
committer | Lyndon Brown <jnqnfe@gmail.com> | 2020-05-04 21:40:13 +0100 |
commit | 3f840aeeba982a858a881271a3bb48bca5b50dd8 (patch) | |
tree | 028cabca052c064e2bb566dbdaee78a05422f505 /scripts/build/binary_syslinux | |
parent | f3a818da9ab1998944c20b0847a733bbdacb61d8 (diff) | |
download | vyos-live-build-3f840aeeba982a858a881271a3bb48bca5b50dd8.tar.gz vyos-live-build-3f840aeeba982a858a881271a3bb48bca5b50dd8.zip |
fully validate BIOS/EFI bootloader combinations
thus far, config bootloader validation only did the basic check that each
bootloader specified was a known and supported bootloader, it did not check
combinations.
it now checks combinations, and strips out the previous "bootloader role"
stuff.
the no-bootloaders warning is duplicated, covering two slightly different
situations (empty string, and whitespace string). this is anticipated to
be just temporary, with this just being the first step in better handling
bootloader selections.
Gbp-Dch: Short
Diffstat (limited to 'scripts/build/binary_syslinux')
-rwxr-xr-x | scripts/build/binary_syslinux | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index c4b985a41..2374d5c55 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -21,7 +21,9 @@ USAGE="${PROGRAM} [--force]" # Processing arguments and configuration files Init_config_data "${@}" -Check_Any_Bootloader_Role "syslinux" +if ! In_list "syslinux" $LB_BOOTLOADERS; then + exit 0 +fi Echo_message "Begin installing syslinux..." |