summaryrefslogtreecommitdiffstats
path: root/src/pcrextend
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-09-18 22:25:37 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-19 12:04:15 +0200
commitb7f051c91db90d909f77266a42c54b3a768c8e0c (patch)
tree37b7c031ae4f806b541fcce72da44405ba67b100 /src/pcrextend
parentMerge pull request #34479 from yuwata/sd-json-dispatch-field-table-static (diff)
downloadsystemd-b7f051c91db90d909f77266a42c54b3a768c8e0c.tar.xz
systemd-b7f051c91db90d909f77266a42c54b3a768c8e0c.zip
tpm2-util: introduce tpm2_is_fully_supported()
Diffstat (limited to 'src/pcrextend')
-rw-r--r--src/pcrextend/pcrextend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcrextend/pcrextend.c b/src/pcrextend/pcrextend.c
index 92f117c2ce..1bf39caf43 100644
--- a/src/pcrextend/pcrextend.c
+++ b/src/pcrextend/pcrextend.c
@@ -369,7 +369,7 @@ static int run(int argc, char *argv[]) {
event = TPM2_EVENT_PHASE;
}
- if (arg_graceful && tpm2_support() != TPM2_SUPPORT_FULL) {
+ if (arg_graceful && !tpm2_is_fully_supported()) {
log_notice("No complete TPM2 support detected, exiting gracefully.");
return EXIT_SUCCESS;
}