mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 17:34:28 -05:00
11 lines
252 B
Plaintext
11 lines
252 B
Plaintext
|
#!/usr/bin/bash
|
||
|
# This script reads the PCR state of the system
|
||
|
# and prints the message to the serial console
|
||
|
|
||
|
main() {
|
||
|
pcr_state="$(tpm2_pcrread sha256)"
|
||
|
echo -e "PCR state:\n${pcr_state}\n" > /run/issue.d/35_constellation_pcrs.issue
|
||
|
}
|
||
|
|
||
|
main
|