[Bug 272077] loader defaults to kernel=kernel even if it doesn't exist

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 21 Aug 2023 18:13:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272077

--- Comment #3 from Kyle Evans <kevans@freebsd.org> ---
Created attachment 244259
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244259&action=edit
Proposed patch

> - if the list of kernels is empty after attempted enumeration
>  - initialize it to getenv("kernels"):gmatch("([^;, ]+)[;, ]?")

This part I'm not sure I agree with; `kernels` is empty by default, so if it's
populated then IMO we should be preserving that as the list of kernels first
and foremost with anything we can autodiscover after that to preserve some
semblance of the ordering the sysadmin may have intended -- especially since
autodiscovery is actually defaulted to on in defaults/loader.conf.

-- 
You are receiving this mail because:
You are the assignee for the bug.