|
|
5c6c2a |
From 240c2fea10fda5c84a7725e8711d9cb214a064a9 Mon Sep 17 00:00:00 2001
|
|
|
5c6c2a |
From: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
5c6c2a |
Date: Wed, 9 Aug 2017 18:50:44 +0200
|
|
|
5c6c2a |
Subject: [PATCH] network: Only bring up wired network interfaces
|
|
|
5c6c2a |
|
|
|
5c6c2a |
The dracut network module is only supposed to be used for wired interfaces
|
|
|
5c6c2a |
but if driver modules for wireless devices are wrongly copied, these will
|
|
|
5c6c2a |
be loaded and the available interfaces brought up.
|
|
|
5c6c2a |
|
|
|
5c6c2a |
If the rd.neednet=1 command line parameter is used, dhclient will attempt
|
|
|
5c6c2a |
to request an IP address for the interfaces and these requests will fail.
|
|
|
5c6c2a |
|
|
|
5c6c2a |
But other dracut modules that depend on the network to be settled, will
|
|
|
5c6c2a |
have to wait for the DHCP requests to timeout. Which can be a lot of time
|
|
|
5c6c2a |
since the dhclient default timeout value is 60 seconds.
|
|
|
5c6c2a |
|
|
|
5c6c2a |
Instead of trying to blacklist all possible kernel modules for wireless
|
|
|
5c6c2a |
devices, only bring up network interfaces if these are for wired devices.
|
|
|
5c6c2a |
|
|
|
5c6c2a |
Suggested-by: Harald Hoyer <harald@redhat.com>
|
|
|
5c6c2a |
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
5c6c2a |
|
|
|
5c6c2a |
Cherry-picked from: 17927597213854b2fdf15461353882339fdb5051
|
|
|
5c6c2a |
Resolves: #1480246
|
|
|
5c6c2a |
---
|
|
|
5c6c2a |
modules.d/40network/net-genrules.sh | 2 +-
|
|
|
5c6c2a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
5c6c2a |
|
|
|
5c6c2a |
diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
|
|
|
5c6c2a |
index 08072fbe..c4396f77 100755
|
|
|
5c6c2a |
--- a/modules.d/40network/net-genrules.sh
|
|
|
5c6c2a |
+++ b/modules.d/40network/net-genrules.sh
|
|
|
5c6c2a |
@@ -102,7 +102,7 @@ command -v fix_bootif >/dev/null || . /lib/net-lib.sh
|
|
|
5c6c2a |
# Default: We don't know the interface to use, handle all
|
|
|
5c6c2a |
# Fixme: waiting for the interface as well.
|
|
|
5c6c2a |
else
|
|
|
5c6c2a |
- cond='ACTION=="add", SUBSYSTEM=="net"'
|
|
|
5c6c2a |
+ cond='ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}!="wlan|wwan"'
|
|
|
5c6c2a |
# if you change the name of "91-default-net.rules", also change modules.d/80cms/cmssetup.sh
|
|
|
5c6c2a |
echo "$cond, $runcmd" > /etc/udev/rules.d/91-default-net.rules
|
|
|
5c6c2a |
fi
|