mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
parent
272aae38f8
commit
0664c1cf1d
@ -212,7 +212,7 @@ Encrypt=tpm2
|
|||||||
EOF
|
EOF
|
||||||
PASSWORD=passphrase systemd-repart --tpm2-device-key=/tmp/srk.pub --definitions=/tmp/dditest --empty=create --size=50M /tmp/dditest.raw --tpm2-pcrs=
|
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)"
|
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
|
systemd-cryptsetup attach dditest "$DEVICE"p1 - tpm2-device=auto,headless=yes
|
||||||
mkdir /tmp/dditest.mnt
|
mkdir /tmp/dditest.mnt
|
||||||
mount -t ext4 /dev/mapper/dditest /tmp/dditest.mnt
|
mount -t ext4 /dev/mapper/dditest /tmp/dditest.mnt
|
||||||
|
Loading…
Reference in New Issue
Block a user