Open aplanas opened 3 months ago
Some approaches:
_copy_theme_data_to_boot_directory
if console="gfxterm"
is set<bootloader-theme>
is setas mkconfig and install are also missing, this will requires more changes
The original idea with _copy_theme_data_to_boot_directory() was as follows
if self.theme
and that value is set via get_boot_theme() which is a function of the base class that does what you proposed in point 3 of your bullet list@aplanas The presence of a font so far was always a strict requirement for grub not only for showing a theme but for showing any type of character. So you are saying this requirement has changed ? if it has changed and no font file is required for grub anymore then I'm ok with changing this into a warning
So you are saying this requirement has changed ?
For the new grub2bls subpackage yes. For the general case no.
As commented in the original post all the elements (configuration files, fonts, modules like bli.mod, and graphic resources) are now deployed inside the EFI file (the squashfs image embedded inside the EFI file)
Changing the the exception into a warning seems a very sensible option. The problem that I found is that also the rest of the tools (grub2-mkconfig, grub2-install, etc) are also optional: the configuration file are inside the EFI and the external one is ignored if present, and the installation is just a copy-and-rename operation from rootfs to the ESP. No other bit (like i386-pc) is not present in the rootfs nor required in the ESP. Basically the grub2bls subpackage just contain a single EFI file and no dependencies.
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:Steps to reproduce the behaviour
Create an image with the
grub2-x86-efi-bls
package, but does not includegrub2
or thepatterns-base-bootloader