The rhel-8.4 qcow2 base image already has the grub2-efi-x64 package
installed on its single partition which has files installed to
/boot/efi..., however a partitioned image will have an empty /boot/efi
partition when running 50-bootloader. This means dnf will not install
grub2-efi-x64 when requested and /boot/efi will remain empty.
This commit makes the following changes:
- Refactors redhat bootloader pkg-map for the following:
- Make x86_64/amd64, arm64/aarch64 adjancent so they don't diverge
- Map grub-efi to packages installed to /usr
- Map grub-efi-{arch} to packages installed to /boot/efi
- Removes packages grub-efi-{arch} before installing grub-efi and
grub-efi-{arch}
Change-Id: Ia197feea34f43bd870fed30829b740596e6b2f48
bootloader
Installs grub[2] on boot partition on the system. In
case GRUB2 is not available in the system, a fallback to Extlinux will
happen. It's also possible to enforce the use of Extlinux by exporting a
DIB_EXTLINUX variable to the environment.
Arguments
DIB_GRUB_TIMEOUTsets thegrubmenu timeout. It defaults to 5 seconds. Set this to 0 (no timeout) for fast boot times.DIB_BOOTLOADER_DEFAULT_CMDLINEsets parameters that are appended to theGRUB_CMDLINE_LINUX_DEFAULTvalues ingrub.cfgconfiguration. It defaults tonofb nomodeset gfxpayload=text.DIB_BOOTLOADER_SERIAL_CONSOLEsets the serial device to be used as a console. It defaults tohvc0for PowerPC,ttyAMA0,115200for ARM64, otherwisettyS0,115200.