Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2003 10:09:06 +0200
From:      David Landgren <david@landgren.net>
To:        FreeBSD Questions List <freebsd-questions@freebsd.org>
Subject:   Re: Setting sysctl variables BEFORE the kernel boots and runs init?
Message-ID:  <3F4DB8A2.8040007@landgren.net>
In-Reply-To: <014d01c36d24$1f8c1430$0201a8c0@dredster>
References:  <D032A40D-D8E3-11D7-B4CB-0003939F9330@borg-cube.com> <014d01c36d24$1f8c1430$0201a8c0@dredster>

next in thread | previous in thread | raw e-mail | index | archive | help
Micheal Patterson wrote:

> 
> ----- Original Message ----- 
> From: "Donald Burr" <dburr@borg-cube.com>
> To: "FreeBSD Questions List" <freebsd-questions@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.

DAvid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F4DB8A2.8040007>