18971c
From 5648ff27e2df826bfb5721f115de83497ac5fb58 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Wed, 5 Feb 2014 13:12:29 +0100
18971c
Subject: [PATCH] Do not reload systemd with wait_for_dev
18971c
18971c
---
18971c
 modules.d/90dmsquash-live/dmsquash-live-genrules.sh | 2 +-
18971c
 modules.d/90dmsquash-live/parse-dmsquash-live.sh    | 2 +-
18971c
 modules.d/90livenet/parse-livenet.sh                | 2 +-
18971c
 modules.d/90lvm/parse-lvm.sh                        | 2 +-
18971c
 modules.d/95iscsi/iscsiroot.sh                      | 2 +-
18971c
 modules.d/95nbd/nbdroot.sh                          | 2 +-
18971c
 modules.d/95nbd/parse-nbdroot.sh                    | 2 +-
18971c
 7 files changed, 7 insertions(+), 7 deletions(-)
18971c
18971c
diff --git a/modules.d/90dmsquash-live/dmsquash-live-genrules.sh b/modules.d/90dmsquash-live/dmsquash-live-genrules.sh
18971c
index b27fccc3..0f51ed46 100755
18971c
--- a/modules.d/90dmsquash-live/dmsquash-live-genrules.sh
18971c
+++ b/modules.d/90dmsquash-live/dmsquash-live-genrules.sh
18971c
@@ -9,7 +9,7 @@ case "$root" in
18971c
         printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
18971c
             ${root#live:/dev/}
18971c
     } >> /etc/udev/rules.d/99-live-squash.rules
18971c
-    wait_for_dev "${root#live:}"
18971c
+    wait_for_dev -n "${root#live:}"
18971c
   ;;
18971c
   live:*)
18971c
     if [ -f "${root#live:}" ]; then
18971c
diff --git a/modules.d/90dmsquash-live/parse-dmsquash-live.sh b/modules.d/90dmsquash-live/parse-dmsquash-live.sh
18971c
index a5564e20..6e54dfe7 100755
18971c
--- a/modules.d/90dmsquash-live/parse-dmsquash-live.sh
18971c
+++ b/modules.d/90dmsquash-live/parse-dmsquash-live.sh
18971c
@@ -56,4 +56,4 @@ info "root was $liveroot, is now $root"
18971c
 # make sure that init doesn't complain
18971c
 [ -z "$root" ] && root="live"
18971c
 
18971c
-wait_for_dev /dev/mapper/live-rw
18971c
+wait_for_dev -n /dev/mapper/live-rw
18971c
diff --git a/modules.d/90livenet/parse-livenet.sh b/modules.d/90livenet/parse-livenet.sh
18971c
index 6c847baa..a6b28423 100755
18971c
--- a/modules.d/90livenet/parse-livenet.sh
18971c
+++ b/modules.d/90livenet/parse-livenet.sh
18971c
@@ -27,7 +27,7 @@ if get_url_handler "$liveurl" >/dev/null; then
18971c
     netroot="livenet:$liveurl"
18971c
     root="livenet" # quiet complaints from init
18971c
     rootok=1
18971c
-    wait_for_dev /dev/root
18971c
+    wait_for_dev -n /dev/root
18971c
 else
18971c
     info "livenet: no url handler for $liveurl"
18971c
 fi
18971c
diff --git a/modules.d/90lvm/parse-lvm.sh b/modules.d/90lvm/parse-lvm.sh
18971c
index 74e1d43b..d69cb455 100755
18971c
--- a/modules.d/90lvm/parse-lvm.sh
18971c
+++ b/modules.d/90lvm/parse-lvm.sh
18971c
@@ -13,7 +13,7 @@ if ! getargbool 1 rd.lvm -d -n rd_NO_LVM \
18971c
     rm -f -- /etc/udev/rules.d/64-lvm*.rules
18971c
 else
18971c
     for dev in $LV_DEVS; do
18971c
-        wait_for_dev "/dev/$dev"
18971c
+        wait_for_dev -n "/dev/$dev"
18971c
     done
18971c
 fi
18971c
 
18971c
diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh
18971c
index 54f49903..1de6fb75 100755
18971c
--- a/modules.d/95iscsi/iscsiroot.sh
18971c
+++ b/modules.d/95iscsi/iscsiroot.sh
18971c
@@ -156,7 +156,7 @@ handle_netroot()
18971c
         printf 'SYMLINK=="disk/by-path/*-iscsi-*-%s", SYMLINK+="root"\n' $iscsi_lun >> /etc/udev/rules.d/99-iscsi-root.rules
18971c
         udevadm control --reload
18971c
         write_fs_tab /dev/root
18971c
-        wait_for_dev /dev/root
18971c
+        wait_for_dev -n /dev/root
18971c
 
18971c
         # install mount script
18971c
         [ -z "$DRACUT_SYSTEMD" ] && \
18971c
diff --git a/modules.d/95nbd/nbdroot.sh b/modules.d/95nbd/nbdroot.sh
18971c
index ddb38192..8bfbebcb 100755
18971c
--- a/modules.d/95nbd/nbdroot.sh
18971c
+++ b/modules.d/95nbd/nbdroot.sh
18971c
@@ -102,7 +102,7 @@ if [ "$root" = "block:/dev/root" -o "$root" = "dhcp" ]; then
18971c
     udevadm control --reload
18971c
     type write_fs_tab >/dev/null 2>&1 || . /lib/fs-lib.sh
18971c
     write_fs_tab /dev/root "$nbdfstype" "$fsopts"
18971c
-    wait_for_dev /dev/root
18971c
+    wait_for_dev -n /dev/root
18971c
 
18971c
     if [ -z "$DRACUT_SYSTEMD" ]; then
18971c
         printf '/bin/mount %s\n' \
18971c
diff --git a/modules.d/95nbd/parse-nbdroot.sh b/modules.d/95nbd/parse-nbdroot.sh
18971c
index 49c44b6f..fe5a7fa4 100755
18971c
--- a/modules.d/95nbd/parse-nbdroot.sh
18971c
+++ b/modules.d/95nbd/parse-nbdroot.sh
18971c
@@ -61,6 +61,6 @@ rootok=1
18971c
 # Shut up init error check
18971c
 if [ -z "$root" ]; then
18971c
     root=block:/dev/root
18971c
-    wait_for_dev /dev/root
18971c
+    wait_for_dev -n /dev/root
18971c
 fi
18971c