From bb3f65208b60afa44070e15ee2f0ae0e9a28af6f Mon Sep 17 00:00:00 2001 From: sourceXORapprentice <51374568+sourceXORapprentice@users.noreply.github.com> Date: Mon, 8 Nov 2021 17:10:15 -0500 Subject: [PATCH] Fix for TPM memory error (#159) Fix for the TPM memory error "out of memory for object contexts" at luks-seal (#159 https://github.com/osresearch/safeboot/issues/159) --- sbin/safeboot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/safeboot b/sbin/safeboot index bbf64ed1..b4e28f55 100755 --- a/sbin/safeboot +++ b/sbin/safeboot @@ -738,6 +738,8 @@ luks-seal() { >> /tmp/tpm.log \ || die "Unable to create TPM key context" + tpm2_flushall + tpm2 load \ --parent-context "$TMP/primary.ctx" \ --public "$TMP/sealed.pub" \