also shred LUKS sealed secret when done instead of rm it

This commit is contained in:
Thierry Laurion 2019-02-22 10:52:35 -05:00
parent b3a6c285c8
commit 8310a3d62e
No known key found for this signature in database
GPG Key ID: 79C78E6659DB658F

View File

@ -150,5 +150,5 @@ if ! tpm nv_writevalue \
|| die "Unable to write sealed secret to NVRAM"
fi
rm "$TPM_SEALED" \
shred -n 10 -z -u "$TPM_SEALED" 2> /dev/null \
|| warn "Failed to delete the sealed secret - continuing"