constellation/image/mkosi.skeleton/usr/libexec/constellation-pcrs

15 lines
334 B
Plaintext
Raw Normal View History

2022-10-11 05:34:57 -04:00
#!/usr/bin/env bash
# Copyright (c) Edgeless Systems GmbH
#
# SPDX-License-Identifier: AGPL-3.0-only
# This script reads the measurements of the system
2022-10-19 07:10:15 -04:00
# and prints the message to the serial console
main() {
pcr_state="$(/usr/sbin/measurement-reader)"
echo -e "${pcr_state}\n" > /run/issue.d/35_constellation_pcrs.issue
2022-10-19 07:10:15 -04:00
}
main