skipped NVChip removal

This commit is contained in:
lareine 2022-02-22 17:01:04 -05:00
parent be6bdee539
commit 58c3e655fe

View File

@ -111,23 +111,19 @@ function initTpm2Emulator {
# Clear our existing PCR values by restarting the ibm tpm simulator # Clear our existing PCR values by restarting the ibm tpm simulator
function resetTpm2Emulator { function resetTpm2Emulator {
echo "clearing the TPM PCR values" echo "clearing the TPM PCR values"
# rm -f /ibmtpm/src/NVChip # NVChip can persist some TPM data between starts
rm -f /ibmtpm/src/NVChip # Stop tpm2-abrmd and the tpm server
pkill -f "tpm2-abrmd" pkill -f "tpm2-abrmd"
pkill -f "tpm_server" pkill -f "tpm_server"
# rstart the tpm server and tpm2-abrmd
/ibmtpm/src/./tpm_server & /ibmtpm/src/./tpm_server &
# sleep 1
pushd /ibmtss/utils > /dev/null pushd /ibmtss/utils > /dev/null
./startup ./startup
# sleep 3
popd > /dev/null popd > /dev/null
tpm2-abrmd -t socket & tpm2-abrmd -t socket &
sleep 1 sleep 1
tpm2_pcrlist -g sha256 # tpm2_pcrlist -g sha256
} }
# Function to update the hirs-site.config file # Function to update the hirs-site.config file