You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add config option to configure systemd-cryptenroll PCRs #476
Right now bootc uses the naive systemd-cryptenroll default PCR selection of 7 when binding a LUKS volume. This is not ideal as shim package updates or version disagreement between installation and installed environment will cause the PCR 7 hash to change thus prevent unlocking of the LUKS root volume.
Beyond the obvious implications that broken boot is a very bad user experience, use of PCR 7 only is not necessarily a best practice when using TPM to unlock encrypted partitions. Users will most certainly need control over the PCR configuration and the systemd-cryptenroll defaults are really not intended as production solutions (they are a rather plain default that might work in some cases).
Either an install configuration or CLI option is needed to allow configuration of the TPM PCRs that the LUKS volume is bound to.
Related findings and a two-stage enrollment proposal posted on #477. The --tpm2-pcrs flag works correctly during enrollment -- the blocker is luksOpen inside the install container (PCR mismatch). A post-install bootc luks enroll-tpm2 command would be the right place for both configurable PCRs and recovery key enrollment.
Activity
Merge pull request bootc-dev#476 from coreosbot-releng/repo-templates
Merge pull request bootc-dev#476 from cgwalters/minor-docs
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
install: add TPM2 PCR config and recovery key for LUKS
andrewdunndev commentedon Mar 22, 2026
Related findings and a two-stage enrollment proposal posted on #477. The
--tpm2-pcrsflag works correctly during enrollment -- the blocker isluksOpeninside the install container (PCR mismatch). A post-installbootc luks enroll-tpm2command would be the right place for both configurable PCRs and recovery key enrollment.feat(install): defer LUKS encryption to first boot