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 # Give tpm_server time to start and register on the DBus
sleep 1 sleep 1
tpm2-abrmd -t socket & tpm2-abrmd -t &
echo "TPM2-Abrmd started" echo "TPM2-Abrmd started"
# Give ABRMD time to start and register on the DBus # 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 # 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 # b: Check if a test specific setpcr.sh file exists. If not use the profiles default script
pushd /ibmtss/utils/ pushd /ibmtss/utils/
echo "restarting the TPM simulator to reset the PCR values" echo "clearing the PCR values"
# ./pcrreset -ha 16 pkill -f "tpm2-abrmd"
./shutdown ./pcrreset -ha 1 0
./powerup /ibmtpm/src/./tpm_server &
echo "TPM simulator restarted" tpm2-abrmd -t socket &
echo "TPM simulator cleared"
popd popd
if [[ ! -f $pcrScript ]]; then if [[ ! -f $pcrScript ]]; then