Bug 173471 - [patch] can't set sysctls from /etc/sysctl.conf for OIDs created by loadable modules
Summary: [patch] can't set sysctls from /etc/sysctl.conf for OIDs created by loadable ...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 12:40 UTC by Anton Yuzhaninov
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments
patch (499 bytes, patch)
2012-11-08 12:40 UTC, Anton Yuzhaninov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Yuzhaninov 2012-11-08 12:40:01 UTC
Some sysctl OID is created only after loading kernel module, where the defined.

E. g. net.inet.ip.dummynet.* sysctls can be set only after dummynet module is loaded.

Fix: To fix 'REQUIRE: kld' should be added to /etc/rc.d/sysctl
But this creates circular dependency, which can be resolved by removing
'REQUIRE: sysctl' from /etc/rc.d/hostid
It seems to be /etc/rc.d/hostid don't not depend on /etc/sysctl.conf settings.
How-To-Repeat: 
Add to /etc/rc.conf
kld_list="ipfw dummynet"

Add to /etc/sysctl.conf
net.inet.ip.dummynet.io_fast=1

After reboot this sysctl will no be set.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:37 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped