From 8d834f649da82bb0e46c936cf2ba48d664d0630c Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Wed, 8 Mar 2023 17:06:31 -0500 Subject: [PATCH] tpmr: Add missing traces to tpm2_kexec_finalize, tpm2_shutdown Signed-off-by: Jonathon Hall --- initrd/bin/tpmr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/initrd/bin/tpmr b/initrd/bin/tpmr index b4c48f08..618bce0b 100755 --- a/initrd/bin/tpmr +++ b/initrd/bin/tpmr @@ -467,6 +467,8 @@ tpm2_reset() { # Perform final cleanup before boot and lock the platform heirarchy. tpm2_kexec_finalize() { + TRACE "Under /bin/tpmr:tpm2_kexec_finalize" + # Flush sessions and transient objects tpm2 flushcontext -Q --transient-object \ || warn "tpm2_flushcontext: unable to flush transient handles" @@ -485,6 +487,8 @@ tpm2_kexec_finalize() { } tpm2_shutdown() { + TRACE "Under /bin/tpmr:tpm2_shutdown" + # Prepare for shutdown. # This is a "clear" shutdown (do not preserve runtime state) since we # are not going to resume later, we are powering off (or rebooting).