Skip to content
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

UKI Compatibility for systemd 255 #302

Merged
merged 2 commits into from
Feb 12, 2024
Merged

UKI Compatibility for systemd 255 #302

merged 2 commits into from
Feb 12, 2024

Conversation

blitz
Copy link
Member

@blitz blitz commented Feb 10, 2024

This PR renames section names in our thin stub:

  • .kernelp -> .linux
  • .initrdp -> .initrd
  • .kernelh -> .linuxh (for consistency)

This allows bootctl kernel-inspect to properly parse our UKIs. Before it would not recognize them as UKIs.

We basically have to satisfy this function in systemd: https://github.com/systemd/systemd/blob/main/src/shared/pe-binary.c#L230

@nikstur Does this have backward compatibility issues?

Fixes #296. Relates to #295.

systemd 255 is stricter in what it considers UKIs. It demands .linux
and .initrd sections. Rename our sections that contain the respective
filenames to match these names.
@blitz blitz requested a review from nikstur February 10, 2024 19:57
@nikstur nikstur added this pull request to the merge queue Feb 12, 2024
Merged via the queue into master with commit 96181a4 Feb 12, 2024
43 checks passed
@nikstur nikstur deleted the uki-issues branch February 12, 2024 22:45
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.

bootctl does not like our stubs any more
2 participants