meson: add config switch for systemd-measure

This prog is still labelled as experimental and we didn't
have a way to disable its build.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek committed 2026-10-07 10:42:54 +02:00
1 parent f7e15328b0
commit b9d52d9ded
6 files changed
+21 -9

No files matched your search

+7 -2
View File
@@ -13,6 +13,7 @@ fi
bootctl
CURRENT_UKI=$(bootctl --print-stub-path)
MEASURE=/usr/lib/systemd/systemd-measure
echo "CURRENT UKI ($CURRENT_UKI):"
ukify inspect "$CURRENT_UKI"
@@ -20,8 +21,12 @@ if test -f /run/systemd/stub/profile; then
echo "CURRENT PROFILE:"
cat /run/systemd/stub/profile
fi
echo "CURRENT MEASUREMENT:"
/usr/lib/systemd/systemd-measure --current
# systemd-measure is optional
if [ -x "$MEASURE" ]; then
echo "CURRENT MEASUREMENT:"
"$MEASURE" --current
fi
if test -f /run/systemd/tpm2-pcr-signature.json; then
echo "CURRENT SIGNATURE:"
jq </run/systemd/tpm2-pcr-signature.json