Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406631 - sys-apps/openrc: sysclt init script processing files in the wrong order?
Summary: sys-apps/openrc: sysclt init script processing files in the wrong order?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openrc-0.10
  Show dependency tree
 
Reported: 2012-03-02 18:20 UTC by Peter Gantner (a.k.a. nephros)
Modified: 2012-03-24 20:05 UTC (History)
0 users

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 Peter Gantner (a.k.a. nephros) 2012-03-02 18:20:49 UTC
The sysctl init script in openrc does this:

    for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
       .. apply the settings

This means that files in /etc/sysctl.d/ can in fact not override things set in /etc/sysctl.conf (as /etc/sysctl.conf will be processed later and overwrite things).

I think the order of files in the loop should be reversed, so that /etc/sysctl.conf  is evaluated first, and /etc/sysctl.d/* are handled later.

Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2012-03-24 20:04:01 UTC
This is fixed in commit 6ac182c.
Thanks for the report.