]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: stop waiting for interfaces if root device is present
authorMartin Wilck <mwilck@suse.com>
Thu, 21 Mar 2019 20:31:15 +0000 (21:31 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Oct 2019 07:18:12 +0000 (09:18 +0200)
modules.d/35network-legacy/net-genrules.sh

index e6035e5e4cd21ee6a8e271404d2f75aa5a7e1cb2..0d4ef27bc29b60f6f2bbc602aac18646a7073b38 100755 (executable)
@@ -96,7 +96,7 @@ command -v fix_bootif >/dev/null || . /lib/net-lib.sh
 
         for iface in $IFACES; do
             if [ "$bootdev" = "$iface" ] || [ "$NEEDNET" = "1" ]; then
-                echo "[ -f /tmp/net.${iface}.did-setup ]" >$hookdir/initqueue/finished/wait-$iface.sh
+                echo "${DRACUT_SYSTEMD+systemctl is-active initrd-root-device.target || }[ -f /tmp/net.${iface}.did-setup ]" >$hookdir/initqueue/finished/wait-$iface.sh
             fi
         done
     # Default: We don't know the interface to use, handle all