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

Bug 487922

Summary: sys-fs/udev-init-scripts installs udev rules for net-misc/netifrc
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: Current packagesAssignee: netifrc Team <netifrc>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, systemd, udev-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://bugs.gentoo.org/show_bug.cgi?id=434692
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for netifrc git to install net.sh and 90-network.rules

Description Mike Gilbert gentoo-dev 2013-10-13 20:01:43 UTC
90-network.rules should probably be installed by netifrc instead; if netifrc is not installed, the rules are pointless.
Comment 1 William Hubbs gentoo-dev 2013-10-13 20:11:49 UTC
Actually I wouldn't have a problem with that, or with the rules
completely going away, because I don't like this deep level of udev
integration with netifrc.

Udev rules, imo, should not be trying to run init scripts.

The problem occurs when udev tries to run these init scripts, but
OpenRC wasn't used to boot the system.
Comment 2 Alexander Tsoy 2013-10-30 17:35:08 UTC
(In reply to William Hubbs from comment #1)
> Udev rules, imo, should not be trying to run init scripts.

Moreover this particular functionality is also provided by ifplugd, which is more robust.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-02-11 13:20:06 UTC
*** Bug 489396 has been marked as a duplicate of this bug. ***
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-03-04 16:13:00 UTC
Created attachment 371718 [details, diff]
Patch for netifrc git to install net.sh and 90-network.rules

Here is a patch for netifrc. Works here. Okay to merge it into netifrc git, and follow-up in udev-gentoo-scripts repo?

--- /lib/udev/
>>> /lib/udev/net.sh
--- /lib/udev/rules.d/
>>> /lib/udev/rules.d/90-network.rules

[ ... ]

>>> net-misc/netifrc-9999 merged.

-rwxr-xr-x 1 root root 865 Mar  4 18:01 /lib/udev/net.sh
-rw-r--r-- 1 root root 280 Mar  4 18:01 /lib/udev/rules.d/90-network.rules
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-03-04 16:14:34 UTC
Also, notice how it's installed only for Linux, and DEPEND="kernel_linux? ( virtual/pkgconfig )" will be required.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-03-05 18:44:17 UTC
Applied in netifrc-0.2.1