From owner-freebsd-questions@FreeBSD.ORG Wed May 12 09:36:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41D5A16A4CE for ; Wed, 12 May 2004 09:36:45 -0700 (PDT) Received: from mail.metawire.org (metawire.org [24.73.230.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF65B43D5A for ; Wed, 12 May 2004 09:36:44 -0700 (PDT) (envelope-from Jan.Christian.Meyer@idi.ntnu.no) Received: from localhost.revehulen.net (metawire.org [127.0.0.1]) by mail.metawire.org (Postfix) with ESMTP id 3D88E3BBF78; Wed, 12 May 2004 11:36:55 -0500 (EST) From: Jan Christian Meyer To: "Mikhail E. Zakharov" Date: Wed, 12 May 2004 17:35:50 +0200 User-Agent: KMail/1.5.2 References: <20040512074547.82863.qmail@web25005.mail.ukl.yahoo.com> <1765051546.20040512120849@ipb.redline.ru> In-Reply-To: <1765051546.20040512120849@ipb.redline.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405121735.50781.Jan.Christian.Meyer@idi.ntnu.no> cc: freebsd-questions@freebsd.org Subject: Re: kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jan.Christian.Meyer@idi.ntnu.no List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 16:36:45 -0000 > MYKERNEL is name of the custom kernel. If you want to build a new > kernel, you must give it some name, for example MYKERNEL. In > handbook you are advised to create a kernel "MYKERNEL" as a copy of > kernel "GENERIC": > # cd /usr/src/sys/i386/conf > # cp GENERIC MYKERNEL > Then you should edit MYKERNEL and so on as described in handbook. Just to add a little something for flavor, I've found it useful to keep my config file elsewhere and use a symbolic link from /usr/src/sys/i386/conf, i.e. # cd /root # mkdir kernel-config # cd kernel-config # cp /usr/src/sys/i386/conf/GENERIC ./MYKERNEL # cd /usr/src/sys/i386/conf # ln -s /root/kernel-config/MYKERNEL Thus, editing, config and compilation works perfectly by the book, but if I feel like it, I can nuke /usr/src/sys entirely and reinstall the kernel sources without losing the precious customised config file. Of course it is no different from backing up the config file before reinstalling, but I've found it convenient a couple of times when noodling with my kernels. Regards, -Jan Christian