mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
committed by
Daan De Meyer
parent
272aae38f8
commit
0664c1cf1d
@@ -212,7 +212,7 @@ Encrypt=tpm2
|
||||
EOF
|
||||
PASSWORD=passphrase systemd-repart --tpm2-device-key=/tmp/srk.pub --definitions=/tmp/dditest --empty=create --size=50M /tmp/dditest.raw --tpm2-pcrs=
|
||||
DEVICE="$(systemd-dissect --attach /tmp/dditest.raw)"
|
||||
udevadm wait --settle --timeout=10 "$DEVICE"
|
||||
udevadm wait --settle --timeout=10 "$DEVICE"p1
|
||||
systemd-cryptsetup attach dditest "$DEVICE"p1 - tpm2-device=auto,headless=yes
|
||||
mkdir /tmp/dditest.mnt
|
||||
mount -t ext4 /dev/mapper/dditest /tmp/dditest.mnt
|
||||
|
||||
Reference in New Issue
Block a user