Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2018 10:30:36 -0400
From:      Anton Yuzhaninov <citrin+bsd@citrin.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: sysctls for kernel modules loaded via kld_list in rc.conf
Message-ID:  <32c02de1-140e-1b75-b0ed-7e50f73b58fb@citrin.ru>
In-Reply-To: <1536309562.3194443.1499937040.1614FFAA@webmail.messagingengine.com>
References:  <1536309562.3194443.1499937040.1614FFAA@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/7/18 4:39 AM, Dave Cottlehuber wrote:
> It seems that if a module (e.g. carp) is not started via /boot/loader.conf but in rc.conf via `kld_list="${kld_list} carp"`, then the /etc/sysctl.conf settings are not applied.
> 
> It's obvious (in hindsight) why this is - sysctl is started before kld is run:
> 
> $ rcorder /etc/rc.d/* /usr/local/etc/rc.d/* |egrep 'carp|kld|sysctl'
> ...
> /etc/rc.d/sysctl
> /etc/rc.d/kldxref
> /etc/rc.d/kld
> 
> But it has caused some unexpected behaviour after rebooting, when preemption didn't work as planned.
> 
> Is this an ordering bug, or something I could improve docs for e.g. in rc.conf(5)?

I think it is an ordering bug and very old one:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=173471



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32c02de1-140e-1b75-b0ed-7e50f73b58fb>