Subject: Re: Kernel config file
To: None <tech-kern@netbsd.org>
From: Pavel Cahyna <pavel@NetBSD.org>
List: tech-kern
Date: 06/20/2007 21:16:34
On Tue, Jun 19, 2007 at 06:44:37AM -0400, Jared D. McNeill wrote:
> On 19-Jun-07, at 3:09 AM, Pavel Cahyna wrote:
> >And I hope the answer is "no", because "yes" would mean that in some
> >cases, you would have to boot the system, edit the configuration  
> >file, and
> >reboot, which is really inconvenient. Especially because changing the
> >configuration can be a prerequisite for successfull boot. The exact
> >format of the configuration file does not matter here.
> 
> My latest patch, which I'll make available later today, addresses  
> this for the current implementation.
> 
> The bootloader pulls in /netbsd.plist, has the ability to read/write  
> the dictionary itself, then the (potentially updated) plist is passed  
> to the kernel. If you happened to have done 'boot -c', any changes  
> made in userconf are reflected in the bootprops dictionary.

What would be the user interface for updating the plist inside the
bootloader? And would it mean lots of platform-specific code to change
if all platforms should support this?

Pavel