Repository navigation
Add basic support for the Boot Loader Interface - #117
Closed
osteffenrh wants to merge 3 commits into
Closed
osteffenrh wants to merge 3 commits into
osteffenrh wants to merge 3 commits into
Conversation
frozencemetery
force-pushed
the
fedora-38
branch
from
January 31, 2023 21:18
178d2c4 to
8a96f14
Compare
osteffenrh
force-pushed
the
uki-1-impl-boot-loader-interface
branch
from
February 7, 2023 15:09
6041a95 to
7b299a6
Compare
frozencemetery
force-pushed
the
fedora-38
branch
from
February 8, 2023 20:53
199a61d to
7f8daed
Compare
Add a function to the EFI module that allows setting EFI varaibles with specific attributes. This is useful for marking variables as volatitile, for example. Signed-off-by: Oliver Steffen <[email protected]>
Add a new module named boot-loader-interface, which provides a command with the same name. It implements a small but quite useful part of the Boot Loader Interface [0]. This interface uses EFI variables for communication between the boot loader and the operating system. This module sets two EFI variables under the vendor GUID 4a67b082-0a4c-41cf-b6c7-440b29bb8c4f: - LoaderInfo: contains GRUB + <version number>. This allows the running operating system to identify the boot loader used during boot. - LoaderDevicePartUUID: contains the partition UUID of the EFI System Partition (ESP). This is used by systemd-gpt-auto-genereator [1] to find the root partitions (and others too), via partition type IDs [2]. This module is only available on EFI platforms. [0] https://systemd.io/BOOT_LOADER_INTERFACE/ [1] https://www.freedesktop.org/software/systemd/man/systemd-gpt-auto-generator.html [2] https://uapi-group.org/specifications/specs/discoverable_partitions_specification/ Signed-off-by: Oliver Steffen <[email protected]>
osteffenrh
force-pushed
the
uki-1-impl-boot-loader-interface
branch
from
February 10, 2023 13:59
7b299a6 to
579633b
Compare
Add a new drop-in file that adds statementes to the grub config file to load the boot-loader-interface module and run the command in case we are generating a config for the EFI platform. Signed-off-by: Oliver Steffen <[email protected]>
Contributor
Author
|
Upstream discussion is ongoing here: |
osteffenrh
marked this pull request as draft
February 27, 2023 08:00
Contributor
Author
|
-> #119 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add a module for the Boot Loader Interface
Add a new module named boot-loader-interface, which provides a command
with the same name. It implements a small but quite useful part of the
Boot Loader Interface. This interface uses EFI variables for communication between the boot loader
and the operating system.
This module sets two EFI variables under the vendor GUID
4a67b082-0a4c-41cf-b6c7-440b29bb8c4f:LoaderInfo: containsGRUB + <version number>.This allows the running operating system to identify the boot loader
used during boot.
LoaderDevicePartUUID: contains the partition UUID of theEFI System Partition (ESP). This is used by
systemd-gpt-auto-genereator to find the root partitions (and others
too), via partition type IDs.
This module is only available on EFI platforms.