Harald Hoyer 5f0dd7
From fc6f458c3becd55277d1ab87d1608f0fe1fccf08 Mon Sep 17 00:00:00 2001
Harald Hoyer 5f0dd7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 5f0dd7
Date: Wed, 11 Mar 2020 13:14:26 +0100
Harald Hoyer 5f0dd7
Subject: [PATCH] TEST-12-RAID-DEG/create-root.sh: more udevadm settle
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
---
Harald Hoyer 5f0dd7
 test/TEST-12-RAID-DEG/create-root.sh | 6 ++++--
Harald Hoyer 5f0dd7
 1 file changed, 4 insertions(+), 2 deletions(-)
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
diff --git a/test/TEST-12-RAID-DEG/create-root.sh b/test/TEST-12-RAID-DEG/create-root.sh
Harald Hoyer 5f0dd7
index c210b582..f40d2500 100755
Harald Hoyer 5f0dd7
--- a/test/TEST-12-RAID-DEG/create-root.sh
Harald Hoyer 5f0dd7
+++ b/test/TEST-12-RAID-DEG/create-root.sh
Harald Hoyer 5f0dd7
@@ -20,7 +20,7 @@ echo "The passphrase is test"
Harald Hoyer 5f0dd7
 set -e
Harald Hoyer 5f0dd7
 cryptsetup luksOpen /dev/md0 dracut_crypt_test 
Harald Hoyer 5f0dd7
 lvm pvcreate -ff  -y /dev/mapper/dracut_crypt_test
Harald Hoyer 5f0dd7
-lvm vgcreate dracut /dev/mapper/dracut_crypt_test 
Harald Hoyer 5f0dd7
+lvm vgcreate dracut /dev/mapper/dracut_crypt_test
Harald Hoyer 5f0dd7
 lvm lvcreate -l 100%FREE -n root dracut
Harald Hoyer 5f0dd7
 lvm vgchange -ay
Harald Hoyer 5f0dd7
 mke2fs -L root /dev/dracut/root
Harald Hoyer 5f0dd7
@@ -29,12 +29,14 @@ mount /dev/dracut/root /sysroot
Harald Hoyer 5f0dd7
 cp -a -t /sysroot /source/*
Harald Hoyer 5f0dd7
 mkdir /sysroot/run
Harald Hoyer 5f0dd7
 umount /sysroot
Harald Hoyer 5f0dd7
-lvm lvchange -a n /dev/dracut/root 
Harald Hoyer 5f0dd7
+lvm lvchange -a n /dev/dracut/root
Harald Hoyer 5f0dd7
 udevadm settle
Harald Hoyer 5f0dd7
 cryptsetup luksClose /dev/mapper/dracut_crypt_test
Harald Hoyer 5f0dd7
 udevadm settle
Harald Hoyer 5f0dd7
 mdadm -W /dev/md0 || :
Harald Hoyer 5f0dd7
+udevadm settle
Harald Hoyer 5f0dd7
 mdadm --detail --export /dev/md0 |grep -F MD_UUID > /tmp/mduuid
Harald Hoyer 5f0dd7
 . /tmp/mduuid
Harald Hoyer 5f0dd7
+udevadm settle
Harald Hoyer 5f0dd7
 eval $(udevadm info --query=env --name=/dev/md0|while read line || [ -n "$line" ]; do [ "$line" != "${line#*ID_FS_UUID*}" ] && echo $line; done;)
Harald Hoyer 5f0dd7
 { echo "dracut-root-block-created"; echo MD_UUID=$MD_UUID;  echo "ID_FS_UUID=$ID_FS_UUID";} | dd oflag=direct,dsync of=/dev/sda
Harald Hoyer 5f0dd7