From owner-freebsd-current@freebsd.org Thu Dec 14 05:52:02 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 63794E96AE9 for ; Thu, 14 Dec 2017 05:52:02 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45BD974ED7 for ; Thu, 14 Dec 2017 05:52:02 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from Ticonderoga.HML3.ScaleEngine.net (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 3419E140A6 for ; Thu, 14 Dec 2017 05:51:55 +0000 (UTC) Subject: Re: kernel names To: freebsd-current@freebsd.org References: From: Allan Jude Message-ID: <2f54bb9d-b7e0-9f4a-b894-6d72c7470b24@freebsd.org> Date: Thu, 14 Dec 2017 00:51:54 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 05:52:02 -0000 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.old > > Is there a way to have better output and support multiple kernels without > having to login to the system and running uname -v or something like that? > > Would it be possible to add options for more kernels from that boot menu? > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > The list is controlled by the /boot/loader.conf variable kernels= which defaults to "kernel kernel.old" 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 autogenerated. It currently contains too much copy/pasted code, and I just need to clean it up a bit: https://reviews.freebsd.org/D11886 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. This feature will work on any filesystem supported by the loader. -- Allan Jude