Skip to content

Root-embedded UKI #32

Answered by poettering
Winterhuman asked this question in Q&A
Oct 27, 2022 · 5 comments · 11 replies
Discussion options

You must be logged in to vote

You could use a tool like mkosi for that, see https://github.com/systemd/mkosi

But it's not a ready-made solution for it.

  1. It can generate "cpio" archives for your from a distro, which is suitable as the initrd for such a UKI.
  2. For regular OS images it is able to combined kernel+initrd into a UKI and invoke systemd-measure and sign it, and use the distro initrd builder for that.

but what is currently missing is to generate the "cpio" first, and then do the objcopy/systemd-measure/sbsign stuff with that so that the primary output is a UKI.

@behrmann @DaanDeMeyer what's your take on this?

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
3 replies
@DaanDeMeyer
Comment options

@teg
Comment options

teg Oct 27, 2022
Collaborator

@gicmo
Comment options

gicmo Oct 29, 2022
Collaborator

Answer selected by Winterhuman
Comment options

You must be logged in to vote
7 replies
@poettering
Comment options

@poettering
Comment options

@Winterhuman
Comment options

@poettering
Comment options

@julian-klode
Comment options

Comment options

You must be logged in to vote
1 reply
@Winterhuman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants