From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 20:47:46 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6849E106566C for ; Tue, 15 Feb 2011 20:47:46 +0000 (UTC) (envelope-from remegius@comcast.net) Received: from qmta14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [76.96.27.212]) by mx1.freebsd.org (Postfix) with ESMTP id 4AFD48FC08 for ; Tue, 15 Feb 2011 20:47:45 +0000 (UTC) Received: from omta18.emeryville.ca.mail.comcast.net ([76.96.30.74]) by qmta14.emeryville.ca.mail.comcast.net with comcast id 8K2X1g0031bwxycAELnlpD; Tue, 15 Feb 2011 20:47:45 +0000 Received: from remegius.comcast.net ([67.180.204.190]) by omta18.emeryville.ca.mail.comcast.net with comcast id 8Lni1g01546zqiB8eLnkFz; Tue, 15 Feb 2011 20:47:45 +0000 Message-ID: <4D5AE66E.1070603@comcast.net> Date: Tue, 15 Feb 2011 12:47:42 -0800 From: Rem P Roberti User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110131 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <201102151225.p1FCPQoW094547@fire.js.berklix.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Stuck X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 20:47:46 -0000 > NOTE: Slightly OT, but figured it was worth the post. > > As a side-note, the config-file will be "cleaned up" before being embedded into the kernel. Meaning "config -x `sysctl -n kern.bootfile`" will rarely ever match the config that was used to generate the kernel in the first place. > > Specifically, comments are removed, and if you've nested configs using the "include" statement, redundant and/or conflicting directives will be consolidated. > > If you instead wish to embed the kernel config AS-IS, comments and structure remaining in-tact, you should instead: > > cd /sys/ARCH/conf > config -C -g CONFIG > > NOTE: `/sys' ought to be a symbolic link to `/usr/src/sys' > NOTE: ARCH is to be replaced with something like "i386", "amd64", etc. > NOTE: CONFIG is to be replaced with something like "GENERIC", "PAE", "MYCUSTOMKERNELCONFIG", etc. > > Then one simply does the following to compile the kernel: > > cd ../../compile/CONFIG > make depend > make > > BUT... then again not everybody: > a. compiles their own custom kernels > b. uses a custom config > c. needs to be able to extract the config verbatim from the compiled kernel > > YNMV (Your Needs May Vary). > -- > Devin > > Not off topic at all, and much appreciated. A lot of what has been offered as a result of my OP is a bit over my head at this stage of the game, but much isn't. I'm gaining on it! Cheers... Rem