added wait to tpr2Reset

rewrote tcg_boot.properties

rewrote tcg_boot.properties
This commit is contained in:
lareine 2022-02-17 16:05:19 -05:00
parent 7013552e78
commit 48205a27f1
2 changed files with 3 additions and 7 deletions

View File

@ -8,8 +8,6 @@ pushd / > /dev/null
echo "Setting up TPM emulator for the TPM2 Provisioner"
source /HIRS/.ci/setup/container/tpm2_common.sh
mkdir -p /etc/hirs
touch /etc/hirs/tcg_boot.properties # work around for install issues with tcg default values
#Wait for the ACA to spin up, if it hasnt already
waitForAca
@ -18,7 +16,7 @@ waitForAca
installProvisioner
# set location of tcg artifacts
#setTcgProperties
setTcgProperties
#echo "Contents of /etc/hirs is $(ls -al /etc/hirs)";
# Install TPM 2.0 Emulator

View File

@ -28,9 +28,6 @@ function setTpmPcrValues {
cd ../utils
./startup
echo "Looking for ibms nvchip file"
find /ibmtss -name nvchip
find /ibmtpm -name nvchip
popd > /dev/null
}
@ -121,9 +118,10 @@ echo "clearing the TPM PCR values"
pkill -f "tpm2-abrmd"
pkill -f "tpm_server"
/ibmtpm/src/./tpm_server &
sleep 1
pushd /ibmtss/utils > /dev/null
./startup
sleep 1
popd > /dev/null
tpm2-abrmd -t socket &
}