Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2007 15:34:09 +0100 (BST)
From:      Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To:        "Wojciech A. Koszek" <wkoszek@freebsd.org>
Cc:        Robert Watson <rwatson@freebsd.org>, Peter Jeremy <peterjeremy@optushome.com.au>, freebsd-current@freebsd.org, Alex Kozlov <spam@rm-rf.kiev.ua>
Subject:   Re: Improved INCLUDE_CONFIG_FILE
Message-ID:  <20070325153013.E77473@ury.york.ac.uk>
In-Reply-To: <20070324233307.GA93841@FreeBSD.czest.pl>
References:  <20070324113739.GA41119@ravenloft.kiev.ua> <20070324135333.GA86105@FreeBSD.czest.pl> <20070324153108.P4956@fledge.watson.org> <20070324220041.GI847@turion.vk2pj.dyndns.org> <20070324233307.GA93841@FreeBSD.czest.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 24 Mar 2007, Wojciech A. Koszek wrote:
> On Sun, Mar 25, 2007 at 08:00:41AM +1000, Peter Jeremy wrote:
>> On 2007-Mar-24 15:32:00 +0100, Robert Watson <rwatson@freebsd.org> wrote:
>>> On Sat, 24 Mar 2007, Wojciech A. Koszek wrote:
>>>> I'd like to have this enabled by default, and I know there should be no
>>>> strong objections.
>>>
>>> I agree -- the memory used by it is very small compared to the amount of
>>> memory in modern systems, and the potential administrative benefit is very
>>> large.  As long as it remains an option, the embedded folk can turn it off
>>> easily.
>> Ideally, we would include it in a .comment section that wasn't loaded.
>> Unfortunately my ELF-foo isn't up to this (I've tried something similar
>> many years ago and couldn't get the linker to DWIW).
>
> In my current implementation, kernel configuration content is converted
> to the string and is actually put into separate ELF section. However,
> it's not .comment but a loadable section, since otherwise you wouldn't
> be able to obtain the configuration of a running system.

strings `sysctl -n kern.bootfile` | grep ^___ | sed -e 's/^___//'

should still work if it was in a .comment section

Gavin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070325153013.E77473>