Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 13:28:28 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/kern kern_mib.c 
Message-ID:  <199901252128.NAA07749@apollo.backplane.com>
References:   <199901251918.LAA11257@dingo.cdrom.com>

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.

    Well, the reason I put it in there is because more and more administrative
    scripts seem to be using rc.conf.

    For example, 'ndc restart'.  System rc.conf effectively controls the
    entire startup configuration of the system, I think it would be really
    excellent to actually *use* it in the same capacity for ongoing control of
    the system.  For example, we could eventually use this to hook realtime
    reconfiguration, monitoring, and watchdog functions into the system.

    I can't think of any other way to propogate the location of a local
    rc configuration file that doesn't require writing some persistent
    state to disk ( which I think would be bad, not to mention not working
    in a mostly read-only boot environment ).

    I'm not rabid about it, but whatever solution we come up with needs to
    be at least as effective.

						-Matt


:> 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
:
:
:

					Matthew Dillon 
					<dillon@backplane.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?199901252128.NAA07749>