From owner-freebsd-current@FreeBSD.ORG Mon Mar 26 13:13:17 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 00A9616A400 for ; Mon, 26 Mar 2007 13:13:17 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw4.york.ac.uk (mail-gw4.york.ac.uk [144.32.128.249]) by mx1.freebsd.org (Postfix) with ESMTP id 774FD13C46A for ; Mon, 26 Mar 2007 13:13:16 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from buffy.york.ac.uk (buffy-128.york.ac.uk [144.32.128.160]) by mail-gw4.york.ac.uk (8.13.6/8.13.6) with ESMTP id l2QDDDTd009435; Mon, 26 Mar 2007 14:13:13 +0100 (BST) Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.13.8/8.13.6) with ESMTP id l2QDDCF0045618; Mon, 26 Mar 2007 14:13:13 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.13.8/8.13.6/Submit) id l2QDDCJ7045617; Mon, 26 Mar 2007 14:13:12 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin.atkinson@ury.york.ac.uk using -f From: Gavin Atkinson To: Larry Rosenman In-Reply-To: <20070326063907.G59155@thebighonker.lerctr.org> 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> <20070325153013.E77473@ury.york.ac.uk> <4607523E.50201@freebsd.org> <20070326111702.GD838@turion.vk2pj.dyndns.org> <20070326063907.G59155@thebighonker.lerctr.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 26 Mar 2007 14:13:11 +0100 Message-Id: <1174914791.44767.17.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk Cc: freebsd-current@freebsd.org Subject: Re: Improved INCLUDE_CONFIG_FILE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 13:13:17 -0000 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 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