Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598621 - =sys-apps/openrc-0.21.7 service net-online local variable override /etc/conf.d/
Summary: =sys-apps/openrc-0.21.7 service net-online local variable override /etc/conf.d/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 13:26 UTC by Nado
Modified: 2016-11-03 16:31 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 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.