summaryrefslogtreecommitdiffstats
path: root/test/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-31 12:00:00 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-12 12:56:03 +0200
commit58e359604ffdca12bb4d2c5807b96e070611c0f6 (patch)
tree999403ac7c646ba58e932e70a0fdd928d6cfea32 /test/units
parentupdate TODO (diff)
downloadsystemd-58e359604ffdca12bb4d2c5807b96e070611c0f6.tar.xz
systemd-58e359604ffdca12bb4d2c5807b96e070611c0f6.zip
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"
Diffstat (limited to 'test/units')
-rwxr-xr-xtest/units/TEST-65-ANALYZE.sh7
1 files changed, 7 insertions, 0 deletions
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