fix error for default hdd|netboot images
commit f811656150
enabled the grub-efi
bootloader by default for amd64|i386 architectures, but failed to
recognise the this bootloader is not supported for hdd|netboot images.
this meants that if a user tried to build such an image without explicitly
specifying the bootloader, excluding grub-efi, their build would fail
with an error in the binary_grub-efi stage.
this fixes the problem by only enabling grub-efi by default on supported
image builds.
This commit is contained in:
parent
1e0339a4e3
commit
72a87fb70d
|
@ -522,7 +522,14 @@ Set_config_defaults ()
|
|||
then
|
||||
case "${LB_ARCHITECTURES}" in
|
||||
amd64|i386)
|
||||
LB_BOOTLOADERS="syslinux,grub-efi"
|
||||
case "${LIVE_IMAGE_TYPE}" in
|
||||
hdd*|netboot)
|
||||
LB_BOOTLOADERS="syslinux"
|
||||
;;
|
||||
*)
|
||||
LB_BOOTLOADERS="syslinux,grub-efi"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue