From 6528563e6490886d4fcb70f9a2167260f8fa019d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 9 Nov 2023 12:25:07 +0100 Subject: [PATCH] test: make sure --tpm2-device-key= works correctly in repart, too --- test/units/testsuite-70.cryptsetup.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 <