Skip to content

Commit

Permalink
also shred LUKS sealed secret when done instead of rm it
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaurion committed Feb 22, 2019
1 parent 5930e46 commit dcb5b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initrd/bin/kexec-seal-key
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit dcb5b25

Please sign in to comment.