Open
Description
Problem description
The new grub2bls subpackage does already provides an EFI file (grub2bls.efi) that contains in the internal squashfs internal image all the required resources: configuration file, fonts, graphical assets, etc. During the installation this file needs to be copied into the ESP and renamed to grub.efi.
KIWI does expect that the theme packages are also installed, and in the bootloader/config/grub2.py there are unconditional calls to _copy_theme_data_to_boot_directory
, making the image fail with:
[ 94s] [ INFO ]: 09:35:44 | Cleaning up Disk instance
[ 94s] [ DEBUG ]: 09:35:44 | EXEC: [partx --delete /dev/loop0]
[ 94s] [ DEBUG ]: 09:35:44 | EXEC: [losetup -d /dev/loop0]
[ 94s] [ ERROR ]: 09:35:44 | KiwiBootLoaderGrubFontError: Setting up unicode font failed with grub path unicode.pf2 not found in ['/usr/src/packages/KIWI-oem/build/image-root/usr/share/grub2/unicode.pf2', '/usr/src/packages/KIWI-oem/build/image-root/usr/lib/grub2/unicode.pf2', '/usr/src/packages/KIWI-oem/build/image-root/usr/share/grub/unicode.pf2', '/usr/src/packages/KIWI-oem/build/image-root/usr/lib/grub/unicode.pf2']
[ 94s] Powering off.
Steps to reproduce the behaviour
Create an image with the grub2-x86-efi-bls
package, but does not include grub2
or the patterns-base-bootloader
<packages type="image" profiles="kvm-and-xen-grub-bls">
<!-- <package name="patterns-base-bootloader"/> -->
<package name="grub2-x86_64-efi-bls" arch="x86_64"/>
<package name="grub2-arm-efi-bls" arch="aarch64"/>
</packages>