Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441990 - sys-apps/openrc 0.11.2 "carrier_timeout" is full of fail for bridges
Summary: sys-apps/openrc 0.11.2 "carrier_timeout" is full of fail for bridges
Status: RESOLVED DUPLICATE of bug 439938
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-06 07:10 UTC by Robert White
Modified: 2012-11-06 14:51 UTC (History)
1 user (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 Robert White 2012-11-06 07:10:37 UTC
The newest /etc/conf.d/net.lo file in openrc (0.11.2) has a "waiting for carrier" (mis)feature enabled by default.

If you rely on meta devices *cough*bridges*cough* that doens't supply carrier sense your next reboot will be full of fail.

While this can be worked around by setting "carrier_timout" to zero [quote]# Incase users don't want this nice feature ...[endquote], if you don't know to do this before your reboot you will have to go find this using a local console.

That's an "existing system" breaker lying right there in a raw emerge.

I know this from having it take out my home firewall and one of my laptops.

It's also pretty sure to submarine anybody using Xen.

This "nice feature" needs to be re-implemented (and tested) using a non-trivial network config before it escapes ~ARCH.  Heck, it would have been nice if that happened _before_ it got _into_ ~ARCH... 8-)

The following was one of my config files that was so-boned by the new breakage until I added the feature squelching carrier_timout disable. 

##### Begin Config #####
carrier_timeout=0
modules="iproute2 dhcpcd wpa_supplicant"
interfaces="br0"

bridge_br0=""
forward_delay_br0="0"
stp_state_br0="0"


depend_wlan0() {
  provide !net
}

depend_eth0() {
 provide !net
 after br0
}

bridge_add_eth0="br0"

config_br0="null"
config_eth0="null"
config_wlan0="null"

postup_eth0() {
  ip address flush dev ${IFACE}
  return 0;
}
Comment 1 Robert White 2012-11-06 07:13:24 UTC
P.S. don't worry about the postup_eth0 thing. I didn't include the pre/post up/down functions that make the per-interface postup work as it is bash specific and that is apparently frowned uppon by the openrc reason de arte.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-06 14:51:31 UTC

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