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"
This commit is contained in:
committed by
Daan De Meyer
parent
d258b1c60c
commit
58e359604f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user