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