Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to use the public keys pcrs if tpm2 pcrs are blank
From issue systemd#32946 If you want to bind a policy to PCR11 and especify the tpm2-pcr flag with and empty value, the bank calculation will fail as it tries to use a non valid value for the calculation of hash. This works around it by trying to use the public keys pcr values if they are set and if the usual tpm2 pcrs banks are empty as to not fail Signed-off-by: Itxaka <itxaka@kairos.io>
- Loading branch information