From: Jan B Date: Wed, 27 Jul 2022 20:10:07 +0000 (+0200) Subject: tests: systemd-cryptenroll: unlock volume with keyfile X-Git-Tag: v252-rc1~453^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24138%2Fhead;p=thirdparty%2Fsystemd.git tests: systemd-cryptenroll: unlock volume with keyfile --- diff --git a/test/units/testsuite-70.sh b/test/units/testsuite-70.sh index 6ebb1c72c95..fdd24e28625 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