Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 11:18:21 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Matt Dillon <dillon@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/kern kern_mib.c 
Message-ID:  <199901251918.LAA11257@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 25 Jan 1999 10:26:09 PST." <199901251826.KAA99368@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

Er, Matt, this is extremely ill-advised.  The kernel's private sysctl 
space is *not* for use as a persistent environment store.

For just about everything that rc.diskless needs, the process 
environment is more than adequate.  

If you feel a need to be able to pass this in, it should be seeded out 
of the kernel environment and set by the loader, then extracted using 
sysctl under kern.environment.

Please consider an alternative method for passing this value around 
that doesn't involve polluting a totally inappropriate namespace.

> dillon      1999/01/25 10:26:09 PST
> 
>   Modified files:
>     sys/kern             kern_mib.c 
>   Log:
>       Add kern.conf_dir sysctl.  This is a R+W string used to specify the
>       directory containing rc.conf.local and rc.local, and possibly other
>       things in the future.
>   
>       This sysctl is used by the diskless startup code and new rc.conf.  If
>       it cannot be found or is empty, the system should revert to using /etc.
>   
>   Revision  Changes    Path
>   1.17      +6 -1      src/sys/kern/kern_mib.c
> 

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



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