]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/boot/efi/stub.c
stub: pass .pcrsig and .pcrpkey PE sections as cpio into invoked kernel
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Aug 2022 14:55:49 +0000 (16:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Sep 2022 09:30:04 +0000 (11:30 +0200)
commit23002b45b121740cfe9237489778ecc5d97f520a
tree781fb9f22d6a6922b3c170a6dddc1f387e032db0
parentdf7ee6f8b0c73ecd4d9f042482b894ebb5b71353
stub: pass .pcrsig and .pcrpkey PE sections as cpio into invoked kernel

Pick up the two new sections in sd-stub and pass them as initrds into
the booted kernels, where they'll show up as
/.extra/tpm2-pcr-signature.json and /.extra/tpm2-pcr-public-key.pem in
the initrd file system.

The initrd is then supposed to pick these files up from there and save
them at a place that will survive into the host OS.
src/boot/efi/stub.c