From owner-freebsd-current@freebsd.org Thu Dec 14 17:46:40 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 4BCF1E88E70 for ; Thu, 14 Dec 2017 17:46:40 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (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 E8A346F6DB for ; Thu, 14 Dec 2017 17:46:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id vBEHkbgi063211; Thu, 14 Dec 2017 17:46:37 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id vBEHkbLv063210; Thu, 14 Dec 2017 09:46:37 -0800 (PST) (envelope-from david) Date: Thu, 14 Dec 2017 09:46:37 -0800 From: David Wolfskill To: bob prohaska Cc: blubee blubeeme , FreeBSD current Subject: Re: kernel names Message-ID: <20171214174637.GQ1179@albert.catwhisker.org> Reply-To: current@freebsd.org Mail-Followup-To: current@freebsd.org, bob prohaska , blubee blubeeme , FreeBSD current References: <20171214171736.GA65768@www.zefox.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yBpClG5lv0ksn6ne" Content-Disposition: inline In-Reply-To: <20171214171736.GA65768@www.zefox.net> User-Agent: Mutt/1.9.1 (2017-09-22) 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 17:46:40 -0000 --yBpClG5lv0ksn6ne Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > >=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? >=20 > Unless I've been fooling myself, it's possible now. Just stop the boot > loader during loading by hitting the spacebar and type=20 > 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=20 # Experiment to see if kernel.save can be an option from the boot menu kernels=3D"kernel kernel.old kernel.save" g1-252(11.1-S)[2]=20 (And yes, it does work -- verified empirically.) Peace, david --=20 David H. Wolfskill david@catwhisker.org The US "cannot afford" Trump as President or Roy Moore in the Senate. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --yBpClG5lv0ksn6ne Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJaMrj9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XfSsH/i9yATqqZ0g/8Q5x5uaarUGN DpRbI/fLAdpok6tBH/0Fu7YalFOJbPtJPlDMoVZbiIZfBeEp/JQguW2BVq+Bh/vi hO9g8UPpOUnxhUSVBPpDbYMSTy3fMecbYB/sOpuj99sogtB7XGnbykfqP4966Utr OpsOaeXDx3ez3ZCFol+IO7WBiQnU+IX0Pem5NhDjEDdXCZrTbc2gFnpKm5RTRtsy NGB+DXz3giuMfgT82po5ow+YeiOFBnwf2U7FrcLP4Uwp/NthWUA5IYbDE9sFfFeB Tu2FkJFsBZUYXjB+Y10eG/ZSWBTHlwilRfu4ginaYbA4pHQ47JJbAjxCF5WPbBM= =koOc -----END PGP SIGNATURE----- --yBpClG5lv0ksn6ne--