From: Lennart Poettering Date: Thu, 9 Nov 2023 11:25:07 +0000 (+0100) Subject: test: make sure --tpm2-device-key= works correctly in repart, too X-Git-Tag: v255-rc2~53^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6528563e6490886d4fcb70f9a2167260f8fa019d;p=thirdparty%2Fsystemd.git test: make sure --tpm2-device-key= works correctly in repart, too --- diff --git a/test/units/testsuite-70.cryptsetup.sh b/test/units/testsuite-70.cryptsetup.sh index a1c6035e45b..0a52fbbe6ec 100755 --- a/test/units/testsuite-70.cryptsetup.sh +++ b/test/units/testsuite-70.cryptsetup.sh @@ -189,4 +189,26 @@ PASSWORD=passphrase systemd-cryptenroll --tpm2-device=auto --tpm2-seal-key-handl systemd-cryptsetup attach test-volume "$IMAGE" - tpm2-device=auto,headless=1 systemd-cryptsetup detach test-volume +# Make sure that --tpm2-device-key= also works with systemd-repart +tpm2_readpublic -c 0x81000001 -o /tmp/srk.pub +mkdir /tmp/dditest +cat > /tmp/dditest/50-root.conf <