Re: Improved INCLUDE_CONFIG_FILE

[ Available lists | Index of freebsd-current | Month of Mar 2007 | Week of 26 Mar 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Date
26 Mar 2007 13:13:17
Subject
Re: Improved INCLUDE_CONFIG_FILE
Message-ID
1174914791.44767.17.camel@buffy.york.ac.uk

In reply to

[ Hide this part ]
On Mon, 2007-03-26 at 06:42 -0500, Larry Rosenman wrote:
> On Mon, 26 Mar 2007, Peter Jeremy wrote:
>
> > On 2007-Mar-25 23:55:26 -0500, Eric Anderson <anderson@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.
>
> I had a weird situation where the /usr/src directory got trashed, but the
> system was still up. I did *NOT* have a good copy of the config so had
> to recreate it.

... but you had the running kernel in /boot/kernel? In which case,
a .comment section would be fine.

Gavin



Elapsed time: 0.152 seconds