-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not unconditionally copy theme data to boot directory #2624
Comments
Some approaches:
|
as mkconfig and install are also missing, this will requires more changes |
The original idea with _copy_theme_data_to_boot_directory() was as follows
@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 |
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
The text was updated successfully, but these errors were encountered: