From 7fd55538aa4d227709b5dc9c3460b54675b45ee1 Mon Sep 17 00:00:00 2001 From: Jan B Date: Wed, 27 Jul 2022 22:10:07 +0200 Subject: tests: systemd-cryptenroll: unlock volume with keyfile --- test/units/testsuite-70.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/units/testsuite-70.sh b/test/units/testsuite-70.sh index 6ebb1c72c9..fdd24e2862 100755 --- a/test/units/testsuite-70.sh +++ b/test/units/testsuite-70.sh @@ -11,6 +11,9 @@ dd if=/dev/zero of=$img bs=1024k count=20 status=none echo -n passphrase >/tmp/passphrase cryptsetup luksFormat -q --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --use-urandom $img /tmp/passphrase +# Unlocking via keyfile +systemd-cryptenroll --unlock-key-file=/tmp/passphrase --tpm2-device=auto $img + # Enroll unlock with default PCR policy env PASSWORD=passphrase systemd-cryptenroll --tpm2-device=auto $img /usr/lib/systemd/systemd-cryptsetup attach test-volume $img - tpm2-device=auto,headless=1 -- cgit v1.2.1