From owner-freebsd-questions@FreeBSD.ORG Mon Jun 17 23:20:21 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2E5C661B for ; Mon, 17 Jun 2013 23:20:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id EC323174A for ; Mon, 17 Jun 2013 23:20:20 +0000 (UTC) Received: from r56.edvax.de (port-92-195-15-122.dynamic.qsc.de [92.195.15.122]) by mx01.qsc.de (Postfix) with ESMTP id E32A63C6FD; Tue, 18 Jun 2013 01:13:00 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r5HND9R7003215; Tue, 18 Jun 2013 01:13:09 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 18 Jun 2013 01:13:09 +0200 From: Polytropon To: Adam Vande More Subject: Re: installing a kernel under a custom location, not /boot/kernel? Message-Id: <20130618011309.395bd882.freebsd@edvax.de> In-Reply-To: References: <201306171213.r5HCD0OU012253@mech-cluster241.men.bris.ac.uk> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Anton Shterenlikht , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jun 2013 23:20:21 -0000 On Mon, 17 Jun 2013 09:21:21 -0500, Adam Vande More wrote: > On Mon, Jun 17, 2013 at 7:13 AM, Anton Shterenlikht wrote: > > > I think there is an option for this. > > But I cannot find it under > > 9.5. Building and Installing a Custom Kernel > > http://www.freebsd.org/doc/handbook/kernelconfig-building.html > > > > I need to keep several kernels installed, not > > just the current and the previous. How to achive this? > > > > KODIR=/boot/testkernel This parameter can be used to the "make installkernel" command, for example in a workflow like this: # make buildkernel KERNCONF=TESTKERNEL # make installkernel KERNCONF=TESTKERNEL KODIR=/boot/testkernel Plus the corresponding settings in /boot/loader.conf: kernel="testkernel" bootfile="/boot/testkernel/kernel" kernel_options="foo bar blah" See /boot/defaults/loader.conf for details. For booting test kernels, you might also find the nextboot command very helpful; read "man nextboot" for more inspiration. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...