Skip to content

Commit

Permalink
test: wait for partition device being processed by udevd
Browse files Browse the repository at this point in the history
Fixes #32697.
  • Loading branch information
yuwata authored and DaanDeMeyer committed May 17, 2024
1 parent 272aae3 commit 0664c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/units/TEST-70-TPM2.cryptsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0664c1c

Please sign in to comment.