diff options
Diffstat (limited to 'src/shared/efi-loader.c')
-rw-r--r-- | src/shared/efi-loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/efi-loader.c b/src/shared/efi-loader.c index e3ec91b877..7cbd69bfb0 100644 --- a/src/shared/efi-loader.c +++ b/src/shared/efi-loader.c @@ -7,7 +7,7 @@ #include "path-util.h" #include "stat-util.h" #include "strv.h" -#include "tpm-pcr.h" +#include "tpm2-pcr.h" #include "utf8.h" #if ENABLE_EFI @@ -271,10 +271,10 @@ int efi_stub_measured(int log_level) { if (r < 0) return log_full_errno(log_level, r, "Failed to parse StubPcrKernelImage EFI variable: %s", pcr_string); - if (pcr_nr != TPM_PCR_INDEX_KERNEL_IMAGE) + if (pcr_nr != TPM2_PCR_KERNEL_BOOT) return log_full_errno(log_level, SYNTHETIC_ERRNO(EREMOTE), - "Kernel stub measured kernel image into PCR %u, which is different than expected %u.", - pcr_nr, TPM_PCR_INDEX_KERNEL_IMAGE); + "Kernel stub measured kernel image into PCR %u, which is different than expected %i.", + pcr_nr, TPM2_PCR_KERNEL_BOOT); return 1; } |