-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #37653 - Always load local disk's GRUB2 configuration
Load 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 is added separately. The following existing approaches for local boot don't work (anymore). Using `chainloader` command: - Not supported according to GRUB2 manual [1] if SecureBoot is enabled (even if supported by some distribution vendors). - Chainloading with disabled SecureBoot requires patched `connectefi` command on some platforms which is currently only supported by EL GRUB2 binaries. Using `exit 1` to boot from next boot device by firmware: - Tests showed that this behavior is not deterministic across different distribution vendor specific boot files. - Additional effort would be required to ensure the correct boot order. - This was introduced with commit b6b3204 for enabled SecureBoot only and was already fixed with commit aca4023. For Windows we still use chainloading as there is no local `grub.cfg`. The default EL GRUB2 which is used in this case supports the `connectefi` command. SecureBoot verification is done by the Microsoft certificate in the db. [1]: https://www.gnu.org/software/grub/manual/grub/html_node/UEFI-secure-boot-and-shim.html#UEFI-secure-boot-and-shim
- Loading branch information
Showing
4 changed files
with
5 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.