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

Bug 598621

Summary: =sys-apps/openrc-0.21.7 service net-online local variable override /etc/conf.d/
Product: Gentoo Linux Reporter: Nado <nado>
Component: Current packagesAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal CC: kensington
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nado 2016-10-31 13:26:23 UTC
In /etc/init.d/net-online start section, variables which are sourced from /etc/conf.d/net-online are overriden by the local declaration of those variables.

`interfaces` and `timeout` need to be removed from these local declarations in /etc/init.d/net-online

Reproducible: Always

Steps to Reproduce:
1. Configure an interface in /etc/conf.d/net-online (lets say interfaces="eth2")
2. Modify init script to echo $interfaces
3. start net-online
Actual Results:  
$interfaces = "eth0 eth1 eth2 br0"

Expected Results:  
$interfaces = "eth2"

Everything works fine once useless local declarations are removed.
Comment 1 William Hubbs gentoo-dev 2016-11-03 16:31:42 UTC
https://github.com/openrc/openrc/commit/f53c8ba

This will be included in 0.23 and backported to 0.22.3.