mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
106b738fab
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
15 lines
334 B
Bash
Executable File
15 lines
334 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) Edgeless Systems GmbH
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
# 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
|