From owner-cvs-all@FreeBSD.ORG Sun Mar 12 02:51:27 2006 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9687516A471; Sun, 12 Mar 2006 02:51:27 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4172C4438A; Sat, 11 Mar 2006 23:08:11 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k2BN5cA6048686; Sat, 11 Mar 2006 16:05:41 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 11 Mar 2006 16:05:50 -0700 (MST) Message-Id: <20060311.160550.67882343.imp@bsdimp.com> To: scottl@samsco.org From: "M. Warner Losh" In-Reply-To: <44119446.9070603@samsco.org> References: <200603091335.23964.jhb@freebsd.org> <86hd668wrg.fsf@xps.des.no> <44119446.9070603@samsco.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 11 Mar 2006 16:05:41 -0700 (MST) Cc: src-committers@freebsd.org, jhb@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org, sam@freebsd.org, des@des.no Subject: Re: cvs commit: src/release Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2006 02:51:27 -0000 In message: <44119446.9070603@samsco.org> Scott Long writes: : Dag-Erling Sm=F8rgrav wrote: : > This talk of KERNELS reminds me of a patchset I've had for quite a : > while. : > = : > Currently, 'make buildkernel' builds all the kernels you list in : > KERNCONF, but installs only one, to /boot/kernel. I've patched my : > tree so it installs all of them into /boot/${KERN_IDENT}. The reas= on : > why I haven't committed this is that I want the loader to present a= : > list of kernels at boot time, and I don't know enough Forth to : > implement that myself. : > = : > Ideally, the loader would grep each kernel and display its version : > string in the menu; and there would be an rc.d script that links : > /boot/kernel to $(dirname $(sysctl -n kern.bootfile)) so things lik= e : > zsh's kldload argument completion still work. : > = : > DES : = : Dan Sobral and I have talked about exactly this in the past. What yo= u : want to do is merge libregex into the loader and add the calling shim= s : so that it can be accessd as 4th words. It's actually a lot easier t= han : it sounds, but I haven't had the time or motivation to try. Once tha= t's : done, you'll be able to easily read directories and search for name : patterns to use. Another option would be to place the kernel version string in its own section that the loader could then parse out of the kernel. It would have the added benefit that it could tell full kernels from mere modules that way too. That does require changes to the build infrastructure to make work, but would have a few advantages. But whatever is easiest to implement... I think it would be a cool feature no matter how it is implemented. Warner