testing tpm clear

testing tpm clear
This commit is contained in:
lareine 2022-02-04 15:58:26 -05:00
parent 1a8e65b5f5
commit aad0fb9c17
2 changed files with 7 additions and 6 deletions

View File

@ -72,7 +72,7 @@ function initTpm2Emulator {
# Give tpm_server time to start and register on the DBus
sleep 1
tpm2-abrmd -t socket &
tpm2-abrmd -t &
echo "TPM2-Abrmd started"
# Give ABRMD time to start and register on the DBus

View File

@ -67,11 +67,12 @@ popd > /dev/null
# a: Clear the TPM PCR registers vi a call to the tss clear
# b: Check if a test specific setpcr.sh file exists. If not use the profiles default script
pushd /ibmtss/utils/
echo "restarting the TPM simulator to reset the PCR values"
# ./pcrreset -ha 16
./shutdown
./powerup
echo "TPM simulator restarted"
echo "clearing the PCR values"
pkill -f "tpm2-abrmd"
./pcrreset -ha 1 0
/ibmtpm/src/./tpm_server &
tpm2-abrmd -t socket &
echo "TPM simulator cleared"
popd
if [[ ! -f $pcrScript ]]; then