From owner-freebsd-current@freebsd.org Thu Dec 14 07:57:20 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 066C4E9AE25 for ; Thu, 14 Dec 2017 07:57:20 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D921779675; Thu, 14 Dec 2017 07:57:18 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id vBE7wl5D070026; Wed, 13 Dec 2017 23:58:53 -0800 (PST) (envelope-from bsd-lists@BSDforge.com) X-Mailer: UDNSMS MIME-Version: 1.0 Cc: In-Reply-To: <2f54bb9d-b7e0-9f4a-b894-6d72c7470b24@freebsd.org> From: "Chris H" Reply-To: bsd-lists@BSDforge.com To: "Allan Jude" Subject: Re: kernel names Date: Wed, 13 Dec 2017 23:58:53 -0800 Message-Id: <633b2131f2701fdcc17de870b74de077@udns.ultimatedns.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 07:57:20 -0000 On Thu, 14 Dec 2017 00:51:54 -0500 "Allan Jude" sai= d > On 12/14/2017 00:47, blubee blubeeme wrote: > > When you boot into FreeBSD and you can select kernels, there's only 2 > > options: > > default and kernel=2Eold > >=20 > > Is there a way to have better output and support multiple kernels witho= ut > > having to login to the system and running uname -v or something like th= at? > >=20 > > Would it be possible to add options for more kernels from that boot men= u? > > _______________________________________________ > > freebsd-current@freebsd=2Eorg mailing list > > https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd=2Eo= rg" > >=20 >=20 > The list is controlled by the /boot/loader=2Econf variable kernels=3D > which defaults to "kernel kernel=2Eold" >=20 > I have a patch almost ready to land that will search all subdirectories > of /boot for a file named 'kernel' and add the names of those > directories to the list, such that the list will basically be autogenerat= ed=2E >=20 > It currently contains too much copy/pasted code, and I just need to > clean it up a bit: https://reviews=2Efreebsd=2Eorg/D11886 >=20 > It was originally designed as part of my contributions towards packaged > base, where pkg will keep the last N (default to 5 I think) kernel > packages you have installed around, incase an upgrade goes bad=2E >=20 > This feature will work on any filesystem supported by the loader=2E >=20 Outstanding, Allan! Well done=2E I eagerly await it's arrival=2E I've often thought about whipping something like this up=2E But something else always seemed to get in the way=2E Thanks, Allan=2E --Chris > --=20 > Allan Jude