]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Do not reload systemd with wait_for_dev
authorHarald Hoyer <harald@redhat.com>
Wed, 5 Feb 2014 12:12:29 +0000 (13:12 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 5 Feb 2014 12:12:29 +0000 (13:12 +0100)
modules.d/90dmsquash-live/dmsquash-live-genrules.sh
modules.d/90dmsquash-live/parse-dmsquash-live.sh
modules.d/90livenet/parse-livenet.sh
modules.d/90lvm/parse-lvm.sh
modules.d/95iscsi/iscsiroot.sh
modules.d/95nbd/nbdroot.sh
modules.d/95nbd/parse-nbdroot.sh

index b27fccc39f64ac96200adac176d601c022eefa1e..0f51ed46ddd06c6d826621388fbbd4424c84bd56 100755 (executable)
@@ -9,7 +9,7 @@ case "$root" in
         printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root $env{DEVNAME}"\n' \
             ${root#live:/dev/}
     } >> /etc/udev/rules.d/99-live-squash.rules
-    wait_for_dev "${root#live:}"
+    wait_for_dev -n "${root#live:}"
   ;;
   live:*)
     if [ -f "${root#live:}" ]; then
index a5564e2092a613aba6ace21ecea1b080ef077f27..6e54dfe770e400194f57d1694338503c4869f183 100755 (executable)
@@ -56,4 +56,4 @@ info "root was $liveroot, is now $root"
 # make sure that init doesn't complain
 [ -z "$root" ] && root="live"
 
-wait_for_dev /dev/mapper/live-rw
+wait_for_dev -n /dev/mapper/live-rw
index 6c847baabee923d14e0d1dc1e32c1ef9e3675eaf..a6b28423504fba4a08a2f4beb7fb8d399c2c24d4 100755 (executable)
@@ -27,7 +27,7 @@ if get_url_handler "$liveurl" >/dev/null; then
     netroot="livenet:$liveurl"
     root="livenet" # quiet complaints from init
     rootok=1
-    wait_for_dev /dev/root
+    wait_for_dev -n /dev/root
 else
     info "livenet: no url handler for $liveurl"
 fi
index 74e1d43b1148fcd71ca23747df0eba80a4c2fbd3..d69cb45599a663f08cf1eda6b0bfcd171eef77a1 100755 (executable)
@@ -13,7 +13,7 @@ if ! getargbool 1 rd.lvm -d -n rd_NO_LVM \
     rm -f -- /etc/udev/rules.d/64-lvm*.rules
 else
     for dev in $LV_DEVS; do
-        wait_for_dev "/dev/$dev"
+        wait_for_dev -n "/dev/$dev"
     done
 fi
 
index 769124f60c82fd4bf55fe0a939a1e353acc4e8ca..c56d54de4ba695cfbbd186f98ec76d003ab24949 100755 (executable)
@@ -156,7 +156,7 @@ handle_netroot()
         printf 'SYMLINK=="disk/by-path/*-iscsi-*-%s", SYMLINK+="root"\n' $iscsi_lun >> /etc/udev/rules.d/99-iscsi-root.rules
         udevadm control --reload
         write_fs_tab /dev/root
-        wait_for_dev /dev/root
+        wait_for_dev -n /dev/root
 
         # install mount script
         [ -z "$DRACUT_SYSTEMD" ] && \
index 2e9d917428e712a0416bceb031b4716ee8379a5c..32f346d3d9e7c50b343f7a370a53a71bb30d00b2 100755 (executable)
@@ -102,7 +102,7 @@ if [ "$root" = "block:/dev/root" -o "$root" = "dhcp" ]; then
     udevadm control --reload
     type write_fs_tab >/dev/null 2>&1 || . /lib/fs-lib.sh
     write_fs_tab /dev/root "$nbdfstype" "$fsopts"
-    wait_for_dev /dev/root
+    wait_for_dev -n /dev/root
 
     if [ -z "$DRACUT_SYSTEMD" ]; then
         printf '/bin/mount %s\n' \
index 49c44b6f37f82e963883dc725c04f9b8f26bc8d0..fe5a7fa49a84f2cc06ba334e8aaf0848e0494742 100755 (executable)
@@ -61,6 +61,6 @@ rootok=1
 # Shut up init error check
 if [ -z "$root" ]; then
     root=block:/dev/root
-    wait_for_dev /dev/root
+    wait_for_dev -n /dev/root
 fi