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 systemd#32697.

(cherry picked from commit 0664c1c)
  • Loading branch information
yuwata authored and keszybz committed May 27, 2024
1 parent c49a677 commit 539c7cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/units/testsuite-70.cryptsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +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"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 539c7cc

Please sign in to comment.