Setting sysctl variables BEFORE the kernel boots and runs init?
david at landgren.net
Thu Aug 28 01:13:19 PDT 2003
Micheal Patterson wrote:
> ----- Original Message -----
> From: "Donald Burr" <dburr at borg-cube.com>
> To: "FreeBSD Questions List" <freebsd-questions at freebsd.org>
> Sent: Wednesday, August 27, 2003 6:11 PM
> Subject: Setting sysctl variables BEFORE the kernel boots and runs init?
>>I would like to be able to set certain sysctl variables in the kernel,
>>preferably BEFORE the kernel finishes booting and runs init, etc. (or
>>at the worst case, very shortly after init runs) I thought I
>>remembered that there was a way to do this through the boot loader.
>>Can anyone enlighten me? Thanks.
> You can configure sysctl options if you create the file /etc/sysctl.conf and
> put your changes there. Is this what you're looking for?
That happens in the late stages if the game. init is running the main
rc script, disks have been fscked and mounted, swap is up. It does
happen before network setup, IIRC. It depends on what variables the OP
is talking about I guess.
More information about the freebsd-questions