Skip to content
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

Fixes #38178 - Add linuxefi/initrdefi wrapper to GRUB2 templates #10430

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jloeser
Copy link

@jloeser jloeser commented Jan 30, 2025

Back in time, GRUB2 is using linux and initrd commands to load the kernel and initrd into ram on legacy BIOS. Later, linuxefi and initrdefi commands have been added to do the same on UEFI platforms.

However, it looks like that linuxefi and initrdefi commands are deprecated and distributions like Ubuntu started to remove them starting with 24.04.

In case of Secure Boot 1 and Ubuntu 24.04 - putting corresponding shim+GRUB2 binaries in bootloader universe directory - the network boot is not working anymore because of used linuxefi/initrdefi commands in the involved GRUB2 configuration templates.

In order fix this we can simply add wrapper functions to provide linuxefi/initrdefi as commands.

@jloeser
Copy link
Author

jloeser commented Jan 30, 2025

Related to #9864

@jloeser jloeser force-pushed the 38178-linuxefi-wrapper branch from 5e13450 to 494d461 Compare January 30, 2025 20:12
Back in time, GRUB2 is using `linux` and `initrd` commands to load the
kernel and initrd into ram on legacy BIOS. Later, `linuxefi` and
`initrdefi` commands have been added to do the same on UEFI platforms.

However, it looks like that `linuxefi` and `initrdefi` commands are
deprecated and distributions like Ubuntu started to remove them starting
with 24.04.

In case of Secure Boot [1] and Ubuntu 24.04 - putting corresponding
shim+GRUB2 binaries in bootloader universe directory - the network boot
is not working anymore because of used `linuxefi/initrdefi` commands in
the involved GRUB2 configuration templates.

In order fix this we can simply add wrapper functions to provide
`linuxefi`/`initrdefi` as commands.

[1]:theforeman#9864
@jloeser jloeser force-pushed the 38178-linuxefi-wrapper branch from 494d461 to 9668079 Compare January 31, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant