From: Frantisek Sumsal Date: Tue, 23 Aug 2022 12:44:01 +0000 (+0200) Subject: test: wait for the lodev to get properly initialized X-Git-Tag: v252-rc1~365 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bca762ce1abafd24016eba7310fdd38c758419f8;p=thirdparty%2Fsystemd.git test: wait for the lodev to get properly initialized Otherwise we might start writing to one of its partition before the respective node is created under /dev, resulting in... interesting stuff. Resolves: #24390 --- diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh index f2d937daba3..6170c8ab63f 100755 --- a/test/units/testsuite-50.sh +++ b/test/units/testsuite-50.sh @@ -187,6 +187,7 @@ if [ "${HAVE_OPENSSL}" -eq 1 ]; then sfdisk --part-label "${image}.gpt" 3 "Signature Partition" fi loop="$(losetup --show -P -f "${image}.gpt")" +udevadm wait --timeout 60 --settle "${loop:?}" dd if="${image}.raw" of="${loop}p1" dd if="${image}.verity" of="${loop}p2" if [ "${HAVE_OPENSSL}" -eq 1 ]; then