From 6f11cf62c6b10361f68d9e5bbff970025e1513c1 Mon Sep 17 00:00:00 2001 From: Joseph Kogut Date: Wed, 4 Dec 2024 18:39:39 -0800 Subject: [PATCH] hup: hooks: silence tpm2_flushcontext trap while updating policy Change-type: patch Signed-off-by: Joseph Kogut --- .../files/95-secureboot/2-fwd_commit_update-policy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-balena-common/recipes-support/hostapp-update-hooks/files/95-secureboot/2-fwd_commit_update-policy b/meta-balena-common/recipes-support/hostapp-update-hooks/files/95-secureboot/2-fwd_commit_update-policy index ba97d4a628..2a8dc02b64 100644 --- a/meta-balena-common/recipes-support/hostapp-update-hooks/files/95-secureboot/2-fwd_commit_update-policy +++ b/meta-balena-common/recipes-support/hostapp-update-hooks/files/95-secureboot/2-fwd_commit_update-policy @@ -46,7 +46,7 @@ if [ "$(echo "${POLICIES}" | wc -w)" -gt 1 ]; then update_reason="Combined policy in use" fi -trap 'tpm2_flushcontext "${SESSION_CTX}"' EXIT +trap 'tpm2_flushcontext "${SESSION_CTX}" 2>/dev/null' EXIT if tpm_nvram_retrieve_passphrase "session:${SESSION_CTX}" "${PASSPHRASE_FILE}"; then echo "Retrieved passphrase from TPM NVRAM"