Skip to content

Add config option to configure systemd-cryptenroll PCRs #476

Open

Description

@jmpolom

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.

Activity

  1. added
    area/install
    on Apr 25, 2024
  2. added 2 commits that reference this issue on Nov 5, 2024
  3. andrewdunndev commented on Mar 22, 2026

    @andrewdunndev
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/install

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions