Details
Description
Today Mender only supports EFI on x86-64.
Smaller adjustments would be needed to support BIOS on x86, and the following steps have been verified by a user (manual changes):
1. mender-convert should copy the 440 first bytes of MBR from input image to output image if it detects that this is an BIOS image
- the 440 first bytes are "boot code" which contains jump instructions to the GRUB binary which is stored between MBR and first partition (boot-gap)
- we already have a feature in mender-convert to copy the boot-gap from input to output image
2. grub.cfg and related file should be installed to boot/grub directory instead of boot/EFI/BOOT
3. Change boot part mount location to /boot/grub instead of /boot/efi (same as we do in Yocto)
- this works as-is today, but might be confusing to have the /boot/efi mount on a bios system
Additional possible steps:
1. Create a default config for a x86 bios build (e.g a qemu) as reference
2. Test integration