1de2d2
From 5e06ab6cc6398fb82b8cd1dbc8da9969d874bb75 Mon Sep 17 00:00:00 2001
1de2d2
From: Martin Wilck <mwilck@suse.de>
1de2d2
Date: Thu, 21 Mar 2019 21:31:15 +0100
1de2d2
Subject: [PATCH] network: stop waiting for interfaces if root device is
1de2d2
 present
1de2d2
1de2d2
---
1de2d2
 modules.d/35network-legacy/net-genrules.sh | 2 +-
1de2d2
 1 file changed, 1 insertion(+), 1 deletion(-)
1de2d2
1de2d2
diff --git a/modules.d/35network-legacy/net-genrules.sh b/modules.d/35network-legacy/net-genrules.sh
1de2d2
index e6035e5e..0d4ef27b 100755
1de2d2
--- a/modules.d/35network-legacy/net-genrules.sh
1de2d2
+++ b/modules.d/35network-legacy/net-genrules.sh
1de2d2
@@ -96,7 +96,7 @@ command -v fix_bootif >/dev/null || . /lib/net-lib.sh
1de2d2
 
1de2d2
         for iface in $IFACES; do
1de2d2
             if [ "$bootdev" = "$iface" ] || [ "$NEEDNET" = "1" ]; then
1de2d2
-                echo "[ -f /tmp/net.${iface}.did-setup ]" >$hookdir/initqueue/finished/wait-$iface.sh
1de2d2
+                echo "${DRACUT_SYSTEMD+systemctl is-active initrd-root-device.target || }[ -f /tmp/net.${iface}.did-setup ]" >$hookdir/initqueue/finished/wait-$iface.sh
1de2d2
             fi
1de2d2
         done
1de2d2
     # Default: We don't know the interface to use, handle all
1de2d2