Update to dracut-044 and several cleanups. Works on tumbleweed standard installation and NFS root. OBS-URL: https://build.opensuse.org/request/show/346361 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=244
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From 330bb44b7773c7b861a6aaa32d4524c783a162f0 Mon Sep 17 00:00:00 2001
|
|
From: Pawel Wieczorkiewicz <pwieczorkiewicz@suse.de>
|
|
Date: Tue, 8 Apr 2014 08:50:55 +0200
|
|
Subject: [PATCH] 40network: Fix race condition when wait for networks
|
|
|
|
If no network related params are specific, but rd.neednet=1 is set,
|
|
the default initqueue action is to wait until one of the network
|
|
interfaces is marked as setup properly.
|
|
|
|
This also help with initqueue's race condition when the network interface
|
|
shows upd late
|
|
|
|
References: bnc#866771
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
modules.d/40network/net-genrules.sh | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
Index: dracut-044/modules.d/40network/net-genrules.sh
|
|
===================================================================
|
|
--- dracut-044.orig/modules.d/40network/net-genrules.sh
|
|
+++ dracut-044/modules.d/40network/net-genrules.sh
|
|
@@ -95,6 +95,9 @@ command -v fix_bootif >/dev/null || . /l
|
|
cond='ACTION=="add", SUBSYSTEM=="net"'
|
|
# if you change the name of "91-default-net.rules", also change modules.d/80cms/cmssetup.sh
|
|
echo "$cond, $runcmd" > /etc/udev/rules.d/91-default-net.rules
|
|
+ if [ "$NEEDNET" = "1" ]; then
|
|
+ echo "[ -f /tmp/net.*.did-setup ]" >$hookdir/initqueue/finished/wait-network.sh
|
|
+ fi
|
|
fi
|
|
|
|
# if you change the name of "90-net.rules", also change modules.d/80cms/cmssetup.sh
|