Can you provide the contents of /home/5267d0dea6/yocto/layers/custom/meta-customer/meta-customer-distro/recipes-extended/images/customer-image.bb:do_image_wic
Sorry for replaying you back after all these months. Iāve restarted working on x86 devices with Mender in the last few days.
This issue appear with this commit:
and was enforced with this one:
that introduces default values for EFI_PROVIDER if some features of Mender are enabled or disables.
If āmender-grubā is enabled, EFI_PROVIDER is set to āgrub-efiā, but if mender-grub + mender-bios are set, EFI_PROVIDER is ānullā.
Building an image using āmender-full-biosā class, enable both feature āmender-grub + mender-biosā in meta-mender-core/classes/mender-setup-grub.inc
the combo mender-grub + mender-bios, set EFI_PROVIDER to null, this consequently trigger an issue when wic is invoked because during the build process on do_image_wic is used the kickstart file genericx86.wks (from ./meta-yocto-bsp/wic/genericx86.wks.in), that inside, use a reference of EFI_PROVIDER as argument for the loader var.
INFO: Creating image(s)...
ERROR: unrecognized bootimg-efi loader:
WARNING: exit code 1 from a shell command.
the delta betwheen bitbake -e on dunfell and on the commit:71286ec47fe856179f9aa1bf7f6445c1db4e640c, confirm the
analisys above, EFI_PROVIDER is ānullā .
mender-bios is needed for a bootable artifact. It installs the grub bootloader on the resulting image, and with this commit.
in conjunction with the default wks file from poky, the build always fail. The only workaround possible is to provide a custom wks file with hardcoded --sourceparams=āloader=grub-EFIā, because EFI_PROVIDER variable is null.
Iām not quite following what needs to change here. Can you provide a detailed setup of how to replicate the reported issue when building with mender-bios? Ideally if you can provide a pull request that fixes the issue that would be great since I donāt really work with the EFI code much at present.
Iām also not quite following. EFI and BIOS setups are mutually incompatible, both canāt be used at the same time. Using EFI_PROVIDER in a recipe is a mistake, since there isnāt one when mender-bios is enabled. Are you sure you donāt just need to add this: