Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489396 - sys-fs/udev-init-scripts with sys-apps/systemd - openrc network hotplug is useless
Summary: sys-fs/udev-init-scripts with sys-apps/systemd - openrc network hotplug is us...
Status: RESOLVED DUPLICATE of bug 487922
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-25 19:36 UTC by Alexander Tsoy
Modified: 2014-02-11 13:20 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2013-10-25 19:36:43 UTC
These messages appears in the journal every boot (and likely every time new network device is attached):

окт. 21 16:56:24 <HOSTNAME> /etc/init.d/net.enp2s5[509]: net.enp2s5: not allowed to be hotplugged

They are caused by sys-fs/udev-init-scripts.

$ equery belongs /lib/udev/rules.d/90-network.rules 
 * Searching for /lib/udev/rules.d/90-network.rules ... 
sys-fs/udev-init-scripts-26 (/lib/udev/rules.d/90-network.rules)

$ cat /lib/udev/rules.d/90-network.rules 
# do not edit this file, it will be overwritten on update

# /etc/udev/rules/90-network.rules:  triggering network init-scripts

# Activate our network if we can
SUBSYSTEM=="net", ACTION=="add",    RUN+="net.sh %k start"
SUBSYSTEM=="net", ACTION=="remove", RUN+="net.sh %k stop"


May be we can override 90-network.rules with systemd generator or  	
any other way? And actually I don't like hard dep on udev-init-scripts. =/
Comment 1 Alexander Tsoy 2013-10-25 21:10:51 UTC
This can be "fixed" the same way as networkmanager: by adding the following code to net.sh

if [ ! -e "/run/openrc/softlevel" ]; then
        # OpenRC is not running
        exit 0
fi
Comment 2 Mike Gilbert gentoo-dev 2013-10-30 15:57:30 UTC
Related to bug 487922.

One workaround would be this:

ln -s /dev/null /etc/udev/rules.d/90-network.rules
Comment 3 Alexander Tsoy 2013-10-30 17:28:03 UTC
(In reply to Mike Gilbert from comment #2)
> Related to bug 487922.
> 

Oh.. Yes, it would be better to move net.sh and 90-network.rules to netifrc package.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-02-11 13:20:06 UTC
I don't think we need 2 bugs for 1 issue.

*** This bug has been marked as a duplicate of bug 487922 ***