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

Bug 252410

Summary: sys-apps/openrc-0.4.1 rc_hotplug variable doesn't work or will be ignored!!
Product: Gentoo Linux Reporter: Jochen Schlick <josch09>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: roy, terrio
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jochen Schlick 2008-12-24 16:49:17 UTC
in /etc/rc.conf is the variable

rc_hotplug="!net.*"

because I don't want to have my network devices 'hotplugged' (I have different runlevels for net.eth0 and net.wlan0. but after reboot rc-status shows the following:

Runlevel: hotplugged
 net.wlan0                           [  started  ]
 bluetooth                           [  started  ]
 udev-postmount                      [  started  ]
 net.eth0                            [  started  ]




Reproducible: Always



Expected Results:  
that rc-status shows for Runlevel 'hotplugged' only bluetooth and udev-postmount and I have only one concerning active network interface... depending on the runlevel.
this was my configuration before updating to 0.4x
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-12-29 23:03:42 UTC
I have rc_hotplug commented out entirely and it's not hotplugging them. It's possible there's a logic issue happening inside. Try commenting it out and seeing what happens
Comment 2 Devin Heckman 2009-01-05 06:56:00 UTC
I tried commenting out rc_hotplug, but the net.wlan0 and net.eth0 services are still getting started. I have the following line in my /etc/rc.conf:

rc_plug_services="!net.eth*"

(I want it to only start net.wlan0 on startup, not net.eth0.)

This worked prior to upgrading to 0.4.1.
Comment 3 Jochen Schlick 2009-01-08 10:43:51 UTC
from my point of view it seems to be a problem with the wildcard handling.
my workaround (because I have only 2 network interfaces)

rc_hotplug="!net.eth0 !net.wlan0"
Comment 4 Devin Heckman 2009-01-08 20:32:39 UTC
I actually just tested this with many combinations of devices I didn't want hotplugged (without wildcards), but it still starts their services:

Runlevel: hotplugged
 net.wlan0                                               [  started  ]
 udev-postmount                                          [  started  ]
 net.eth0                                                [  started  ]

I use sys-apps/openrc-0.4.1-r1.
Comment 5 Devin Heckman 2009-01-18 00:08:36 UTC
Embarrassingly, this now works. I was setting the wrong variable; rc_plug_services is no more, and rc_hotplug works for me.

I apologize for the bugspam.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-12-19 18:03:26 UTC
(In reply to comment #5)
> Embarrassingly, this now works. I was setting the wrong variable;
> rc_plug_services is no more, and rc_hotplug works for me.
> 
> I apologize for the bugspam.
> 

No worries, closing bug.