Date: Thu, 14 Dec 2017 09:46:37 -0800 From: David Wolfskill <david@catwhisker.org> To: bob prohaska <fbsd@www.zefox.net> Cc: blubee blubeeme <gurenchan@gmail.com>, FreeBSD current <freebsd-current@freebsd.org> Subject: Re: kernel names Message-ID: <20171214174637.GQ1179@albert.catwhisker.org> In-Reply-To: <20171214171736.GA65768@www.zefox.net> References: <CALM2mE=_76KGhBXK3N0BZe%2B5UdcKGaGh37DFfpRbbkS88uVV4g@mail.gmail.com> <20171214171736.GA65768@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171214174637.GQ1179>