Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 575128

Summary: net-misc/netifrc-0.2.2: interface hotplug broken with udev-225
Product: Gentoo Linux Reporter: Johan Hovold <jhovold>
Component: [OLD] Core systemAssignee: netifrc Team <netifrc>
Status: RESOLVED FIXED    
Severity: major CC: whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=554510
Whiteboard: netifrc:udev
Package list:
Runtime testing required: ---

Description Johan Hovold 2016-02-19 12:01:20 UTC
After what I assume was the update to udev-225 my usb network device is no longer brought up after being plugged in.



Reproducible: Always

Steps to Reproduce:
1. Make sure init script is present (e.g. /etc/init.d/net.enp0s20u6u3)
2. Verify that hotplugging is enabled in /etc/rc.conf
3. Plug in usb network device

Actual Results:  
Network interface is not brought up.

Expected Results:  
Network interface is brought up.

This is a regression as my setup used to work (prior to udev-225 update).

I tracked it down to net.sh being called with the old rather than renamed interface name:

Feb 19 12:32:16 xi kernel: [64298.698322] cdc_ether 1-6.3:1.0 enp0s20u6u3: renamed from usb0
Feb 19 12:32:16 xi udev-net.sh: /etc/init.d/net.usb0

Replacing %k with $name in /lib/udev/rules.d/90-network.rules fixes the problem.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 22:34:19 UTC
[master 4264b34] udev_rules: %k obsolete.
 1 file changed, 2 insertions(+), 3 deletions(-)
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 22:54:08 UTC
*** Bug 554510 has been marked as a duplicate of this bug. ***