-
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
Kiwi seems to generate an incompatible configuration for Grub 2.12 on Ubuntu 23.10 #2386
Comments
Note: I don't think it's related to #2354 as Grub doesn't even get to that step any more before bailing out |
For the virtual profile there is The part that is really strange is the reboot that happens immediately after loading the grub EFI module. The error message about "gfxterm" means it was able to at least read the config file from the associated device. A restart after that seems to point to an exception inside some compiled in grub code. If you find a grub-mkimage call in the build log you also see how many grub modules we compile into this module. Maybe this gives a hint ? Other than that kiwi generates the grub bits using the grub tooling, in case of some config error we usually land in a grub shell but a reboot of the machine is new to me too. Thus I'm sorry I have no immediate solution at hand |
Hi @schaefi, unfortunately I haven'd had time to look into this more - I'll let you know when I have more info |
ok no problem, thanks for the feedback. I drop the question label and I'm sure issues with grub 2.12 will come along our way without asking :) |
@IsaacJT several changes have been made that touches the problems you found:
We are building many integration test images using grub version="2.12" and they seem to work correctly. e.g for TW Would you mind to double check if the latest version fixes things on your end too ? There is a Staging build for testing available here: If you need another target distro to be enabled on Staging please let me know Thanks much |
ok, I guess no further feedback on this topic means it either works or is not so much of interest anymore ;) For the we built integration tests for grub 2.12 worked. I'm closing |
Problem description
Images generated by Kiwi with a distribution using Grub 2.12 do not boot in EFI mode. When the image is booted, it immediately restarts after loading Grub. I'm guessing that this is likely due to the configuration that Kiwi generates not being compatible with the new changes in Grub 2.12.
An example of where this happens is in Ubuntu Mantic 23.10 using QEMU and the OVMF EFI firmware.
The Grub EFI binary is executed, but seems to bail out and then restart:
If you add nvram to the VM to persist the EFI variables, it restarts and loads the EFI setup app (assumedly because Grub exits):
Expected behaviour
The image boots correctly using Grub 2.12.
Steps to reproduce the behaviour
Build the ubuntu-jammy Kiwi description with the following patch applied to change it to be based on Ubuntu 23.10: https://github.com/OSInside/kiwi-descriptions/blob/master/ubuntu/x86_64/ubuntu-jammy/config.xml
Build the image using the "Virtual" profile and boot it with QEMU:
OS and Software information
The text was updated successfully, but these errors were encountered: