From owner-freebsd-stable@FreeBSD.ORG Tue Mar 14 11:28:04 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0440116A400 for ; Tue, 14 Mar 2006 11:28:04 +0000 (UTC) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFB7C43D68 for ; Tue, 14 Mar 2006 11:27:47 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k2EBRkrI085686; Tue, 14 Mar 2006 13:27:46 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ip.net.ua [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 04157-01; Tue, 14 Mar 2006 13:27:18 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k2EBQigv085661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Mar 2006 13:26:44 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id k2EBR2x6018111; Tue, 14 Mar 2006 13:27:02 +0200 (EET) (envelope-from ru) Date: Tue, 14 Mar 2006 13:27:02 +0200 From: Ruslan Ermilov To: Alan Amesbury Message-ID: <20060314112701.GF17026@ip.net.ua> References: <440DFEC5.3070501@umn.edu> <44159088.9000505@umn.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cz6wLo+OExbGG7q/" Content-Disposition: inline In-Reply-To: <44159088.9000505@umn.edu> User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at ip.net.ua Cc: freebsd-stable@freebsd.org Subject: Re: Kernel INCLUDE_CONFIG_FILE workaround? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 11:28:04 -0000 --cz6wLo+OExbGG7q/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 13, 2006 at 09:32:24AM -0600, Alan Amesbury wrote: > Jorge Aldana wrote: >=20 > >I'm on 6.1PreRelease and this works: > > > >strings -n 3 /boot/kernel/kernel | grep -v ____ | sed -n 's/^___//p' > > > >There was a minor tweek in this line back in 5.X transition form 4.X but= =20 > >my script works fine for 6.X since then. >=20 > Note that the problem isn't in the line you provided above that extracts= =20 > the built-in configuration file. It's in the build procedure that's=20 > supposed to put the config file into the kernel in the first place. In= =20 > other words, "options INCLUDE_CONFIG_FILE" doesn't include *all* the=20 > configuration data, because it doesn't include included configuration=20 > files. It's only including the very first level of nested configuration= =20 > files, which is not an accurate representation of what's in the kernel. >=20 > In my example, the configuration file for GENERIC should've been in=20 > there somewhere, as well as anything included by GENERIC (such as the=20 > stuff in DEFAULTS). >=20 > Again, this used to work great, but appears to have been broken in favor= =20 > of... usability? >=20 I posted a patch to config(8) some time ago that did what you want, but it wasn't widely accepted so I abandoned it. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --cz6wLo+OExbGG7q/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEFqiFqRfpzJluFF4RAtO7AJ0ZtxJFIzTYndKIdrLP9gNx2gJP2ACgnoPB 9qZVXgII3YQ90vw+bSMXPZM= =H/KH -----END PGP SIGNATURE----- --cz6wLo+OExbGG7q/--