Subject: Boot properties, take 3
To: None <tech-kern@NetBSD.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: tech-kern
Date: 06/19/2007 07:04:02
Heyas --

Here's the latest version of the bootprops code:

	http://www.invisible.ca/~jmcneill/netbsd/bootprops3.patch

With this version, the bootloader now understands how to parse (and  
can easily be extended to modify) the boot property list. My plan is  
to allow the bootloader to change properties on the fly in the next  
version. Also, since the bootloader can update the plist loaded from  
disk, it can now pass bootinfo via the properties structure rather  
than btinfo_*.

Userconf has also been better taught how to use boot properties; when  
a device is enabled or disabled, the boot properties are updated with  
this change. To save the current state, you can read the  
kern.bootprops sysctl and dump the contents to the saved state file / 
netbsd.plist

Comments on anything other than the colour of paint are welcome.

Cheers,
Jared