From owner-freebsd-arch@FreeBSD.ORG Thu Apr 15 11:33:04 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 23DA716A4CE for ; Thu, 15 Apr 2004 11:33:04 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC5F743D4C for ; Thu, 15 Apr 2004 11:33:03 -0700 (PDT) (envelope-from jeh@freebsd.org) Received: from thehousleys.net ([24.34.30.131]) by comcast.net (rwcrmhc11) with ESMTP id <2004041518325701300fhej2e>; Thu, 15 Apr 2004 18:33:03 +0000 Received: from localhost (localhost [127.0.0.1]) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i3FIWpoN011954; Thu, 15 Apr 2004 14:32:51 -0400 (EDT) (envelope-from jeh@FreeBSD.org) Received: from thehousleys.net ([127.0.0.1]) by localhost (cat.int.thehousleys.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11650-06; Thu, 15 Apr 2004 14:32:48 -0400 (EDT) Received: from FreeBSD.org (baby.int.thehousleys.net [192.168.0.100]) (authenticated bits=0) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i3FIWK27011946; Thu, 15 Apr 2004 14:32:20 -0400 (EDT) (envelope-from jeh@FreeBSD.org) Message-ID: <407ED533.5020102@FreeBSD.org> Date: Thu, 15 Apr 2004 14:32:19 -0400 From: "James E. Housley" Organization: FreeBSD User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at thehousleys.net 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 18:33:04 -0000 Dag-Erling Smørgrav 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. > > The attached patch changes that. It modifies kern.pre.mk to install > each kernel in /boot/ instead of /boot/kernel. It also > 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. > > 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? > But isn't changing to use the last kernel instead of the first kernel a violation of POLA? Other then that this sounds great. Jim -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net --------------------------------------------------------------------- Life begins at 4.0