From owner-freebsd-questions@FreeBSD.ORG Wed Oct 11 07:56:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0815816A407 for ; Wed, 11 Oct 2006 07:56:26 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 431F543D46 for ; Wed, 11 Oct 2006 07:56:24 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.7.193] (68.Red-80-34-55.staticIP.rima-tde.net [80.34.55.68]) by strange.daemonsecurity.com (Postfix) with ESMTP id 60EC42E037; Wed, 11 Oct 2006 09:56:22 +0200 (CEST) Message-ID: <452CA3A0.9060002@locolomo.org> Date: Wed, 11 Oct 2006 09:56:16 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Zbigniew Szalbot References: <20061011084014.W23849@192.168.11.51> In-Reply-To: <20061011084014.W23849@192.168.11.51> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: custom kernel, make buildkernel and then? 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: Wed, 11 Oct 2006 07:56:26 -0000 Zbigniew Szalbot wrote: > Hello, > > Hope you can advise me. I have a FreeBSD 6.1 stable system for which I > want to build a custom kernel. However, I am scared to death (almost ;) > and just want to make sure I have it done the right way. > > I have in the past used supfile with ports-all option and couldn't build > a custom kernel. Yesterday it dawned on me that I need sources for that, > not ports. So I ran cvsup with src-all option. Now, I followed these steps: > > # cd /usr/src/sys/i386/conf > # mkdir /root/kernels > # cp GENERIC /root/kernels/LISTS > # ln -s /root/kernels/LISTS > > then I used procedure 2 for building the kernel the new way. > > # cd /usr/src > # make buildkernel KERNCONF=LISTS > > It all went well without any complaint (I was really puzzled - when it > comes to IT, I usually see half-empty glasses...) but now I wonder. My > next step is supposed to be make installkernel KERNCONF=LISTS > > Is it OK to do it on an already configured system? I have some usual > applications like php, mysql, apache, exim MTA configured and working. > So in other words I am trying to build a custom kernel not on a fresh > install but on an already working system (operating for 25 days). It is > not a webserver but it is running and needs these apps. My fear is that > I am likely to break something. Yes, you can install the kernel. Applications don't live in kernelspace. If your kernel fails to boot you can boot the old kernel by in the loader menu go to a promt, unload the kernel and load kernel.old. I usually build a GENERIC kernel and copy it with modules to /boot/kernel.GENERIC - just as my custom kernel is copied to /boot/kernel.CUSTOM as the kernel.old is overwritten on every install. You might in some limited cases experience problems if you updated and build/install world, but that's a different story. > Will shutdown -r now be enough? Or do I have to boot in single user mode? Just reboot as normally. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9