From owner-freebsd-questions@FreeBSD.ORG Sat May 15 06:47:16 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 106C616A4CE for ; Sat, 15 May 2004 06:47:16 -0700 (PDT) Received: from mta04-svc.ntlworld.com (mta04-svc.ntlworld.com [62.253.162.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0394743D2F for ; Sat, 15 May 2004 06:47:15 -0700 (PDT) (envelope-from scott@fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta04-svc.ntlworld.comESMTP <20040515134633.ZGDX11448.mta04-svc.ntlworld.com@llama.fishballoon.org>; Sat, 15 May 2004 14:46:33 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.33; FreeBSD) id 1BOzVR-0007WD-Ko; Sat, 15 May 2004 14:47:13 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.11/8.12.11/Submit) id i4FDjuSt000736; Sat, 15 May 2004 14:45:56 +0100 (BST) (envelope-from scott) Date: Sat, 15 May 2004 14:45:56 +0100 From: Scott Mitchell To: Giorgos Keramidas Message-ID: <20040515134556.GA468@tuatara.fishballoon.org> References: <20040512074547.82863.qmail@web25005.mail.ukl.yahoo.com> <1765051546.20040512120849@ipb.redline.ru> <200405121735.50781.Jan.Christian.Meyer@idi.ntnu.no> <20040513214910.GA2334@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040513214910.GA2334@gothmog.gr> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-PRERELEASE i386 cc: Jan Christian Meyer cc: "Mikhail E. Zakharov" cc: freebsd-questions@freebsd.org Subject: Re: kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 13:47:16 -0000 On Fri, May 14, 2004 at 12:49:10AM +0300, Giorgos Keramidas wrote: > On 2004-05-12 17:35, Jan Christian Meyer wrote: > > > MYKERNEL is name of the custom kernel. If you want to build a new > > > kernel, you must give it some name, for example MYKERNEL. > snip > > 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. > snip > > # cd /usr/src/sys/i386/conf > > # ln -s /root/kernel-config/MYKERNEL > > FWIW, I keep my kernel configs outside of /usr/src too. > > diomedes> ls -ld CELERON > lrwxr-xr-x 1 root wheel 31 May 14 2003 CELERON -> /local/sys/CELERON > diomedes> _ > > > Thus, editing, config and compilation works perfectly by the book, but > > if I feel like it, I can nuke /usr/src/sys entirely [...] > > ... which I promptly went ahead and did once. Only to discover I had > also nuked my "precious" (sic) kernel config. That made me think of > ways to avoid the same silliness in the future. The symlink was, > naturally, the first thought that I came up with :-) One side-effect of symlinking kernel configs to watch out for: If you happen to 'make buildkernel' on one machine, then try to 'make installkernel' on another, with /usr/src mounted over NFS, the kernel config still has to be accessible to the installing machine - which may or may not work, depending where your symlink points to. I'm not sure if this is also the case for the standalone kernel build process using config(8). I worked around this by keeping the configs in /usr/src/sys/i386/conf, but making sure that directory was included in my daily backups. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon