Since we can only read the file descriptor for the passphrase once,
we cannot stop the TPM 1.2 and then restart it but we have to use
'swtpm_ioctl -i' to re-init it.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
logit "Successfully gave up ownership of the TPM."
# TPM is now disabled and deactivated; enable and activate it
- stop_tpm 1
- start_tpm "$SWTPM" "$tpm_state_path"
-
+ output="$($SWTPM_IOCTL --tcp :$((TPM_PORT+1)) -i 2>&1)"
if [ $? -ne 0 ]; then
- logerr "Could not re-start TPM."
+ logerr "Could not re-init TPM."
return 1
fi