]> git.ipfire.org Git - thirdparty/dracut.git/commit
network: Only bring up wired network interfaces 266/head
authorJavier Martinez Canillas <javierm@redhat.com>
Wed, 9 Aug 2017 16:50:44 +0000 (18:50 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 9 Aug 2017 17:10:42 +0000 (19:10 +0200)
commit17927597213854b2fdf15461353882339fdb5051
tree8990bdd15f0675e24bb8bf0f8eb24423ec310dbe
parente316ae0e4309726b2c067a70ac41f7b22011c063
network: Only bring up wired network interfaces

The dracut network module is only supposed to be used for wired interfaces
but if driver modules for wireless devices are wrongly copied, these will
be loaded and the available interfaces brought up.

If the rd.neednet=1 command line parameter is used, dhclient will attempt
to request an IP address for the interfaces and these requests will fail.

But other dracut modules that depend on the network to be settled, will
have to wait for the DHCP requests to timeout. Which can be a lot of time
since the dhclient default timeout value is 60 seconds.

Instead of trying to blacklist all possible kernel modules for wireless
devices, only bring up network interfaces if these are for wired devices.

Suggested-by: Harald Hoyer <harald@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
modules.d/40network/net-genrules.sh