From owner-cvs-all Mon Jan 25 13:29:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA13765 for cvs-all-outgoing; Mon, 25 Jan 1999 13:29:33 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA13758; Mon, 25 Jan 1999 13:29:30 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id NAA07749; Mon, 25 Jan 1999 13:28:28 -0800 (PST) (envelope-from dillon) Date: Mon, 25 Jan 1999 13:28:28 -0800 (PST) From: Matthew Dillon Message-Id: <199901252128.NAA07749@apollo.backplane.com> To: Mike Smith Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_mib.c References: <199901251918.LAA11257@dingo.cdrom.com> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk : : :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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message