Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487922 - sys-fs/udev-init-scripts installs udev rules for net-misc/netifrc
Summary: sys-fs/udev-init-scripts installs udev rules for net-misc/netifrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
: 489396 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-13 20:01 UTC by Mike Gilbert
Modified: 2014-03-05 18:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for netifrc git to install net.sh and 90-network.rules (netifrc.patch,2.17 KB, patch)
2014-03-04 16:13 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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