mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-18 02:39:56 +00:00
added wait to tpr2Reset
rewrote tcg_boot.properties rewrote tcg_boot.properties
This commit is contained in:
parent
7013552e78
commit
48205a27f1
@ -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
|
||||
|
@ -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 &
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user