From 58e359604ffdca12bb4d2c5807b96e070611c0f6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 31 May 2024 12:00:00 +0200 Subject: analyze: move "has-tpm2" from systemd-creds to systemd-analyze The verb s not really specific to credential management, it was always a bit misplaced. Hence move it to systemd-analyze, where we already have some general TPM related verbs such as "srk" and "pcrs" --- test/units/TEST-65-ANALYZE.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/units') diff --git a/test/units/TEST-65-ANALYZE.sh b/test/units/TEST-65-ANALYZE.sh index 9fc2de1a21..db1cc585c7 100755 --- a/test/units/TEST-65-ANALYZE.sh +++ b/test/units/TEST-65-ANALYZE.sh @@ -965,6 +965,13 @@ systemd-analyze condition --instance=tmp --unit=systemd-growfs@.service systemd-analyze verify --instance=tmp --man=no systemd-growfs@.service systemd-analyze security --instance=tmp systemd-growfs@.service +systemd-analyze has-tpm2 ||: +if systemd-analyze has-tpm2 -q ; then + echo "have tpm2" +else + echo "have no tpm2" +fi + systemd-analyze log-level info touch /testok -- cgit v1.2.3