From 733fea8e2df5df8c6d1b7715ad4ff535cfe4277c Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Wed, 8 Mar 2023 17:17:01 -0500 Subject: [PATCH] tpmr: Add TRACE to cleanup functions Add TRACE to cleanup_shred, cleanup_session Signed-off-by: Jonathon Hall --- initrd/bin/tpmr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/initrd/bin/tpmr b/initrd/bin/tpmr index 1349c7e3..ce4c7e98 100755 --- a/initrd/bin/tpmr +++ b/initrd/bin/tpmr @@ -220,6 +220,7 @@ tpm2_startsession() { # session file. E.g.: # trap "cleanup_session '$SESSION_FILE'" EXIT cleanup_session() { + TRACE "Under /bin/tpmr:cleanup_session" session_file="$1" if [ -f "$session_file" ]; then DEBUG "Clean up session: $session_file" @@ -235,6 +236,7 @@ cleanup_session() { # trap EXIT, e.g.: # trap "cleanup_shred '$FILE'" EXIT cleanup_shred() { + TRACE "Under /bin/tpmr:cleanup_shred" shred -n 10 -z -u "$1" 2>/dev/null || true }