Skip to content

Commit

Permalink
Merge pull request #42 from hallyn/2023-08-28/savepcr7
Browse files Browse the repository at this point in the history
Don't overwrite the saved pcr7.bin
  • Loading branch information
hallyn committed Aug 29, 2023
2 parents abf22e5 + 5941d91 commit 8ed7b64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layers/build-krd/dracut/soci/soci-settled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ soci_udev_settled() {
soci_info "Preinstall completed"
;;
provision)
soci_log_run tpm2_pcrread sha256:7 -o /sysroot/pcr7.bin > /sysroot/pcr7.out
if [ ! -f /sysroot/pcr7.bin ]; then
soci_log_run tpm2_pcrread sha256:7 -o /sysroot/pcr7.bin > /sysroot/pcr7.out
fi
soci_log_run tpm2_pcrextend "7:sha256=b7135cbb321a66fa848b07288bd008b89bd5b7496c4569c5e1a4efd5f7c8e0a7"
soci_info "PCR7 has been extended. Ready to provision."
;;
Expand Down

0 comments on commit 8ed7b64

Please sign in to comment.