Date: Thu, 14 Dec 2017 15:15:04 +0800 From: blubee blubeeme <gurenchan@gmail.com> To: Allan Jude <allanjude@freebsd.org> Cc: FreeBSD current <freebsd-current@freebsd.org> Subject: Re: kernel names Message-ID: <CALM2mEn7_yQY2Gprs3L7q3EWQZqRyS6dT5zNBsMfkX0Q6GUVLw@mail.gmail.com> In-Reply-To: <2f54bb9d-b7e0-9f4a-b894-6d72c7470b24@freebsd.org> References: <CALM2mE=_76KGhBXK3N0BZe%2B5UdcKGaGh37DFfpRbbkS88uVV4g@mail.gmail.com> <2f54bb9d-b7e0-9f4a-b894-6d72c7470b24@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 14, 2017 at 1:51 PM, Allan Jude <allanjude@freebsd.org> wrote: > 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 > _______________________________________________ > 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" > Allen, thanks for the great work. I'll test it out but I can't wait to have it merged in.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEn7_yQY2Gprs3L7q3EWQZqRyS6dT5zNBsMfkX0Q6GUVLw>