Skip to content

Discover unified kernel images on EFI - #119

Closed
osteffenrh wants to merge 3 commits into
rhboot:fedora-40from
osteffenrh:uki-2-discover-uki
Closed

osteffenrh wants to merge 3 commits into
rhboot:fedora-40from
osteffenrh:uki-2-discover-uki

Conversation

@osteffenrh

@osteffenrh osteffenrh commented Feb 23, 2023 •

Copy link
Copy Markdown
Contributor

The blscfg module implements the Boot Loader Specification for "Type 1" entries = configuration snippets.
This PR extends this module to also handle "Type 2" entries: unified kernel images (UKI) by adding
a new command "blscfg_uki". It searches for UKI in /EFI/Linux on the EFI partition and on $root
(probably /boot) and adds them to the menu.

@osteffenrh osteffenrh changed the title Discover unified kernel images Draft: Discover unified kernel images Feb 23, 2023
@osteffenrh osteffenrh changed the title Draft: Discover unified kernel images Draft: Discover unified kernel images on EFI Feb 23, 2023
@osteffenrh
osteffenrh marked this pull request as draft February 23, 2023 16:13
@osteffenrh osteffenrh closed this Feb 23, 2023
@osteffenrh osteffenrh reopened this Feb 27, 2023
@osteffenrh
osteffenrh marked this pull request as ready for review February 27, 2023 08:01
@osteffenrh osteffenrh changed the title Draft: Discover unified kernel images on EFI Discover unified kernel images on EFI Feb 27, 2023
@osteffenrh

Copy link
Copy Markdown
Contributor Author

Reopened and ready for comments. Sorry for the mess 😅

@osteffenrh
osteffenrh force-pushed the uki-2-discover-uki branch from f9e75a3 to 80ff774 Compare March 2, 2023 18:37
@osteffenrh

Copy link
Copy Markdown
Contributor Author

Improved os-rel parsing.

@osteffenrh

Copy link
Copy Markdown
Contributor Author

The Boot Loader Interface patches are now upstream:
https://lists.gnu.org/archive/html/grub-devel/2023-05/msg00156.html

Any comments on this PR are very welcome.

@nfrayer nfrayer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread grub-core/commands/blscfg.c Resolved
@osteffenrh
osteffenrh force-pushed the uki-2-discover-uki branch from ea41258 to ca745d9 Compare June 26, 2023 12:39
Comment thread grub-core/commands/blscfg.c Resolved
Comment thread grub-core/commands/blscfg.c Resolved
Comment thread grub-core/commands/blscfg.c Resolved
This avoids compiler warnings in case bls_add_keyval() is called
with const char* as arguments.

Signed-off-by: Oliver Steffen <[email protected]>
Add a new command "blscfg_uki" to the blscfg module.  It looks for
unified kernel images (UKI) in the locations defined by the Boot Loader
Specification.  Additionally check on the device indicated by the $root
variable.  Add all UKIs found to the menu.

The UKI are booted using the 'chainloader' command on EFI.

Signed-off-by: Oliver Steffen <[email protected]>
@osteffenrh
osteffenrh changed the base branch from fedora-39 to fedora-40 October 24, 2023 13:53
@osteffenrh

Copy link
Copy Markdown
Contributor Author

@vathpela ping?

GitHub still shows one change request as open, although I marked it as resolved. Strange.

Rebased and updated PR target branch.

@osteffenrh

Copy link
Copy Markdown
Contributor Author

@vathpela ping?

@cgwalters

Copy link
Copy Markdown

I think this one is still desirable for bootc - we'd like to go in the direction of UKIs but need to support OSes that don't use systemd-boot today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants