From owner-freebsd-current@freebsd.org Thu Dec 14 18:19:11 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 435B8E8A047 for ; Thu, 14 Dec 2017 18:19:11 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2CF3471564 for ; Thu, 14 Dec 2017 18:19:11 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: by mailman.ysv.freebsd.org (Postfix) id 28CC6E8A045; Thu, 14 Dec 2017 18:19:11 +0000 (UTC) Delivered-To: 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 28461E8A044; Thu, 14 Dec 2017 18:19:11 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (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 0927771563; Thu, 14 Dec 2017 18:19:10 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vBEIJ955098154; Thu, 14 Dec 2017 10:19:09 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vBEIJ9fL098153; Thu, 14 Dec 2017 10:19:09 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201712141819.vBEIJ9fL098153@pdx.rh.CN85.dnsmgr.net> Subject: Re: kernel names In-Reply-To: <20171214174637.GQ1179@albert.catwhisker.org> To: current@freebsd.org Date: Thu, 14 Dec 2017 10:19:09 -0800 (PST) CC: bob prohaska , blubee blubeeme , FreeBSD current X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Thu, 14 Dec 2017 18:36:15 +0000 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 18:19:11 -0000 > On Thu, Dec 14, 2017 at 09:17:36AM -0800, bob prohaska wrote: > > On Thu, Dec 14, 2017 at 01:47:13PM +0800, 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? > > > > Unless I've been fooling myself, it's possible now. Just stop the boot > > loader during loading by hitting the spacebar and type > > boot kernelname > > at the loader prompt > > .... > > As Allan Jude pointed out earlier in the thread, it's a lot easier than > that: just set the "kernels" variable in /boot/loader.conf. > > For example, I update, build, boot, and run FreeBSD on my laptop daily. > That process installs /boot/kernel (after moving the previous one to > /boot/kernel.old). I like to keep a "recent known-working" kernel > around that isn't automagically replaced, so: > > g1-252(11.1-S)[1] grep kernel /boot/loader.conf > # Experiment to see if kernel.save can be an option from the boot menu > kernels="kernel kernel.old kernel.save" > g1-252(11.1-S)[2] > > (And yes, it does work -- verified empirically.) And you can also do an ls /boot while at a loader prompt to see all the kernels you have laying around you might want to choose from. -- Rod Grimes rgrimes@freebsd.org