Improved INCLUDE_CONFIG_FILE

Peter Jeremy peterjeremy at optushome.com.au
Mon Mar 26 11:17:04 UTC 2007


On 2007-Mar-25 23:55:26 -0500, Eric Anderson <anderson at freebsd.org> wrote:
>On 03/25/07 09:34, Gavin Atkinson wrote:
>>strings `sysctl -n kern.bootfile` | grep ^___ | sed -e 's/^___//'
>>
>>should still work if it was in a .comment section
>
>Unless you no longer have the running kernel, or it has changed since 
>the boot up of the system.  A sysctl knob to dump it is *very* useful.

Note that kern.bootfile will get updated during installkernel.  I also
can't think of a situation where I would have lost all copies of my
running kernel as well as the config file that was used to build it.
This could potentially happen if you ran two or more installkernels
without rebooting but I can't think of any reason why I would do that:
If a kernel builds, I am likely to try booting it before going onto
something else.  If a kernel doesn't build, it won't install.

Overall, having the config file loaded strikes me as a waste of RAM.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070326/9ba89394/attachment.pgp


More information about the freebsd-current mailing list