Add 'data' parameter to options and convert to programs where it is useful (#41786)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-04-23 21:13:32 +02:00
committed by GitHub
18 changed files with 965 additions and 1186 deletions
+6
View File
@@ -45,6 +45,12 @@ cat >/tmp/result.json <<EOF
EOF
"$SD_MEASURE" calculate --linux=/tmp/tpmdata1 --initrd=/tmp/tpmdata2 --bank=sha1 --bank=sha256 --bank=sha384 --bank=sha512 --phase=foo -j | diff -u - /tmp/result.json
cat >/tmp/result <<EOF
11:sha1=8a625cbc3c497b9a86dcf4f6a32582895ce969bb
EOF
"$SD_MEASURE" calculate \
--{linux,osrel,cmdline,initrd,ucode,splash,dtb,dtbauto,uname,sbat,pcrpkey,profile,hwids,efifw}=/tmp/tpmdata1 \
--bank=sha1 --phase=foo | cmp - /tmp/result
rm /tmp/result /tmp/result.json
# Generate key pair