From owner-freebsd-arch@FreeBSD.ORG Thu Apr 15 07:51:07 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D34016A4CE for ; Thu, 15 Apr 2004 07:51:07 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC6B043D4C for ; Thu, 15 Apr 2004 07:51:06 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i3FEp1tf025380; Thu, 15 Apr 2004 10:51:01 -0400 (EDT) Date: Thu, 15 Apr 2004 10:51:01 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: arch@freebsd.org Subject: Re: installing multiple kernels X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2004 14:51:07 -0000 On Thu, 15 Apr 2004, [iso-8859-1] Dag-Erling Sm=F8rgrav wrote: > Currently, Makefile.inc1 will only install a single kernel. If > KERNCONF specifies multiple kernel configs, they are all built, but > only the first one is installed. This makes sense since otherwise the > last one installed would simply clobber all the other ones. >=20 > The attached patch changes that. It modifies kern.pre.mk to install > each kernel in /boot/ instead of /boot/kernel. It also I think it would be neat to install multiple KERNCONF kernels to /boot/kernel/ and only install one set of modules. > modifies Makefile.inc1 to build and install all kernel configs listed > in KERNCONF. It also adds a script, sys/conf/regkernel.sh, which > keeps a list of installed kernels in /boot/kernels, making sure that > the last one installed is always listed last. >=20 > The only missing element is to make the loader read /boot/kernels and > have $kernel default to the last kernel listed there (i.e. the most > recently installed) instead of "kernel". It would also be nice to > offer a kernel selection menu for the CLI-impaired. Unfortunately, > I'm afraid my forth skills aren't quite up to the task. Any takers? >=20 > DES > --=20 > Dag-Erling Sm=F8rgrav - des@des.no --=20 Dan Eischen