config: respect --bootloaders option again on amd64/i386

Persist LB_BOOTLOADERS in lb_binary_* configuration, since
Init_config_data called from lb_binary_* calls Prepare_config which
then overrides LB_BOOTLOADER_BIOS and LB_BOOTLOADER_EFI if
LB_ARCHITECTURE is amd64 or i386, and these can only be restored to
their proper values by the presence of LB_BOOTLOADERS.

This therefore ensures that the value of the "--bootloaders" parameter
to lb_config is respected by the lb_binary_* steps.
This commit is contained in:
Rob Shearman 2022-02-17 19:25:49 +00:00 committed by Robert Shearman
parent f04dc6dc49
commit 3b0d8263d2

View File

@ -1218,6 +1218,9 @@ LB_BOOTLOADER_BIOS="${LB_BOOTLOADER_BIOS}"
# Set EFI bootloader
LB_BOOTLOADER_EFI="${LB_BOOTLOADER_EFI}"
# Set bootloaders
LB_BOOTLOADERS="${LB_BOOTLOADERS}"
# Set checksums
LB_CHECKSUMS="${LB_CHECKSUMS}"