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