Fixes #37653 - Always load local disk's GRUB2 configuration #10247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We propose to switch to loading the local disk's GRUB2 configuration regardless of weather SecureBoot is enabled or not. This standardizes the boot process under UEFI.
To support SecureBoot for arbitrary operating systems, support for distribution vendor specific boot files will be added by #9864 and the related PRs.
Distribution vendors patch GRUB2 differently which results in
exit 1
(see: Fixes #37562 - Fix local disk boot over network #10207) andconnectefi
command (available on EL only), which affects chainloading from local disks using thechainloader
command (see: Fixes #37345 - Improve "EFI local chainloading" on SecureBoot enabled hosts #10126).Therefore, in case distribution vendor specific boot files are set up for the operating system of a host, using the
chainloader
command may lead to problems during boot in case the distribution vendor specific GRUB2 doesn't support theconnectefi
command - which is at least true for non EL systems.For SecureBoot enabled hosts this has already been fixed by switching to loading the local disk's GRUB2 configuration (#10207). Now we want to introduce this also for the case that SecureBoot is disabled.
For Windows we still use chainloading as there is no local
grub.cfg
. The default EL GRUB2 which is used in this case supports theconnectefi
command. SecureBoot verification is done by the Microsoft certificate in the db.