Removal of CONFIG_EFI_STUB ubuntu 24.04 breaks some use cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-raspi (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
We have been having a special use case where grub is used as stage 2 uboot. Then grub loads the linux kernel (in our case a menu with different iso images).
This used to work great from earlier than ubuntu 22.04. However, this is now broken with ubuntu 24.04.
Loading the kernel from grub fails with an error like CONFIG_EFI_STUB is not enabled.
Looking at the kernel config, 5.15.0-1053-raspi (22.04) has the CONFIG_EFI_ options enabled.
CONFIG_EFI_STUB=y
CONFIG_EFI=y
CONFIG_
CONFIG_EFI_ESRT=y
CONFIG_
# CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
# CONFIG_
# CONFIG_EFI_TEST is not set
# CONFIG_
CONFIG_
CONFIG_EFIVAR_FS=m
In 6.8.0-1004-raspi, there is only:
# CONFIG_EFI is not set
CONFIG_
Could you please enable back the CONFIG_EFI_ options back to raspi kernel. Even though raspi does not have UEFI, using a stage 2 bootloader like grub requires the EFI_STUB.
FYI, Looking at git history, these two commits removed most of CONFIG_EFI from the ubuntu raspi kernels.
commit 9f2edb8e5a7bfe2
Author: Juerg Haefliger <email address hidden>
Date: Wed Jan 24 19:51:18 2024 +0100
6.7.0-1001.1 (patches unapplied)
Imported using git-ubuntu import.
commit 4dfdd5ed3871002
Author: Juerg Haefliger <email address hidden>
Date: Thu Jan 18 08:48:24 2024 +0100
6.5.0-1010.13 (patches unapplied)
Imported using git-ubuntu import.
Side note: It would be great if linux-image-raspi is just merged to linux-image-
Thanks.
tags: | added: kern-10897 |