]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Add support for signing PCR policies for the initrd main
authorChris Coulson <chris.coulson@amutable.com>
Tue, 30 Jun 2026 22:15:57 +0000 (23:15 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 5 Aug 2026 19:58:46 +0000 (21:58 +0200)
commitf7401bdc8d23486bb346790dc92508381a062f3b
tree1f209f128ab2b34851e3be29ffb92fa41c67fe4e
parent33d17b2b92b87b27842767df14c362e13023f735
Add support for signing PCR policies for the initrd

The way that NvPCRs are initialized and anchored in systemd is changing,
and to support this, the UKI needs to include signed PCR policies that
can only be satisfied during the initrd, as these are used to authorize
NvPCR initialization. This is enabled with a new --sign-initrd-pcrs
option for ukify.

This adds a new "SignInitrdPCRs=" option to control this. The default is
"auto" which will turn on this option if PCR signing is enabled and
ukify is new enough.

The corresponding systemd PR is https://github.com/systemd/systemd/pull/42796
mkosi/__init__.py
mkosi/config.py
mkosi/resources/man/mkosi.1.md
tests/test_json.py