-
Notifications
You must be signed in to change notification settings - Fork 998
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 #38232 - Fix GRUB2 loader commands for Debian/Ubuntu #10455
Fixes #38232 - Fix GRUB2 loader commands for Debian/Ubuntu #10455
Conversation
Supersedes #10430 |
efi_suffix = 'efi' | ||
os_major = @host.operatingsystem.major.to_i | ||
|
||
if (os_major > 12 && os_major < 24) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include an OS name check like in the other file because this will be incorrect for Debian 13.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autoinstall is Ubuntu only, Debian is using preseed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, so you're referring to Ubuntu 12.04. That makes a lot more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stejskalleos mind taking the final look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍏 LGTM
Cannot merge due to failed CI jobs. @jloeser can you please fix the commit message & rebase over the latest develop? If it will be green, I'll merge it. |
Back in time, GRUB2 is using `linux` and `initrd` loader commands to load the kernel and initrd into ram on legacy BIOS. Later, `linuxefi` and `initrdefi` loader commands have been added to do the same on UEFI platforms as some kind of interim solution. These out-of-tree patches have been added by the vendors. First vendors [1] started now to drop patches for `linuxefi`/`initrdefi` loader commands support, `linux`/`initrd` of course also work under UEFI then. Thus, we need to adapt preseed templates to render correct templates with supported loader commands. [1]:https://salsa.debian.org/grub-team/grub/-/commit/5cf01c9d98bda554ac2460a6e68e34743a19328f
1b74a44
to
1b8bca4
Compare
Back in time, GRUB2 is using
linux
andinitrd
loader commands to load the kernel and initrd into ram on legacy BIOS. Later,linuxefi
andinitrdefi
loader commands have been added to do the same on UEFI platforms as some kind of interim solution. These out-of-tree patches have been added by the vendors.First vendors 1 started now to drop patches for
linuxefi
/initrdefi
loader commands support,linux
/initrd
of course also work under UEFI then.Thus, we need to adapt preseed templates to render correct templates with supported loader commands.