>Number: 173471 >Category: conf >Synopsis: [patch] can't set sysctls from /etc/sysctl.conf for OIDs >created by loadable modules >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 08 12:40:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Anton Yuzhaninov >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: System: FreeBSD citrin.office.vega.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r241615: Tue Oct 23 17:20:03 MSK 2012 [email protected]:/usr/obj/usr/src/sys/NK i386
>Description: 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. >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. >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. --- patch begins here --- Index: etc/rc.d/hostid =================================================================== --- etc/rc.d/hostid (revision 241615) +++ etc/rc.d/hostid (working copy) @@ -28,7 +28,6 @@ # # PROVIDE: hostid -# REQUIRE: sysctl # KEYWORD: nojail . /etc/rc.subr Index: etc/rc.d/sysctl =================================================================== --- etc/rc.d/sysctl (revision 241615) +++ etc/rc.d/sysctl (working copy) @@ -4,6 +4,7 @@ # # PROVIDE: sysctl +# REQUIRE: kld . /etc/rc.subr --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
