From owner-freebsd-questions@FreeBSD.ORG Sat Mar 31 19:45:58 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 154D916A403 for ; Sat, 31 Mar 2007 19:45:58 +0000 (UTC) (envelope-from tournoij@xs4all.nl) Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by mx1.freebsd.org (Postfix) with ESMTP id A87F813C44C for ; Sat, 31 Mar 2007 19:45:57 +0000 (UTC) (envelope-from tournoij@xs4all.nl) Received: from xs3.xs4all.nl (xs3.xs4all.nl [194.109.21.4]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id l2VJjuGu082920; Sat, 31 Mar 2007 21:45:56 +0200 (CEST) (envelope-from tournoij@xs4all.nl) Received: from xs3.xs4all.nl (tournoij@localhost [127.0.0.1]) by xs3.xs4all.nl (8.13.6/8.13.6) with ESMTP id l2VJjuds025032; Sat, 31 Mar 2007 21:45:56 +0200 (CEST) (envelope-from tournoij@xs4all.nl) Received: (from tournoij@localhost) by xs3.xs4all.nl (8.13.6/8.13.6/Submit) id l2VJjtXF025031; Sat, 31 Mar 2007 21:45:55 +0200 (CEST) (envelope-from tournoij) Date: Sat, 31 Mar 2007 21:45:55 +0200 From: Martin Tournoij To: freebsd-questions@freebsd.org Message-ID: <20070331194555.GA24605@xs3.xs4all.nl> References: <1224.212.25.54.147.1175362965.squirrel@mail.uni-svishtov.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1224.212.25.54.147.1175362965.squirrel@mail.uni-svishtov.bg> User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: lalev@uni-svishtov.bg Subject: Re: saving kernel configuration file into the kernel itself 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: Sat, 31 Mar 2007 19:45:58 -0000 On Sat 31 Mar 2007 20:03, lalev@uni-svishtov.bg wrote: > I remember that in FreeBSD 4 there was a way to include configuration file > in the kernel being compiled, but I could not remember what it was and I > could not find it in the handbook. Is there such feature in FreeBSD 6 ? >From /usr/src/sys/conf/NOTES : # This allows you to actually store this configuration file into # the kernel binary itself, where it may be later read by saying: # strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p' > MYKERNEL # options INCLUDE_CONFIG_FILE # Include this file in kernel Also check out /usr/src/sys/i386/conf/NOTES Replace i386 with your arch. -- Martin