diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-05-31 12:00:00 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-09-12 12:56:03 +0200 |
commit | 58e359604ffdca12bb4d2c5807b96e070611c0f6 (patch) | |
tree | 999403ac7c646ba58e932e70a0fdd928d6cfea32 /test/units | |
parent | update TODO (diff) | |
download | systemd-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-x | test/units/TEST-65-ANALYZE.sh | 7 |
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 |