freebsd_amp_hwpstate/stand/lua
Kyle Evans d04415c520 loader: lua: remove the default kernel if it doesn't exist
The `kernel` env var provides the default kernel, usually "kernel".  It
may be the case that the user doesn't have a "kernel" kernel, just
"kernel.*" kernels, but have left `kernel` to the default because we
autodetect entries by default anyways.

If we're doing autodetection, take note of whether the default kernel
exists or not and remove it from the list if it doesn't and we had found
any other kernels.  We avoid it in the #kernels == 1 case because
something fishy has likely happened and we should just trust the
configuration.

Reviewed by:	imp, manu
Differential Revision:	https://reviews.freebsd.org/D42967
2023-12-13 10:52:14 -06:00
..
Makefile
Makefile.depend loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
cli.lua
cli.lua.8
color.lua
color.lua.8
config.lua stand: lua: module names should permit more 2023-09-04 21:28:11 -05:00
config.lua.8
core.lua loader: lua: remove the default kernel if it doesn't exist 2023-12-13 10:52:14 -06:00
core.lua.8 loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
drawer.lua
drawer.lua.8
gfx-beastie.lua
gfx-beastiebw.lua
gfx-fbsdbw.lua
gfx-orb.lua
gfx-orbbw.lua
hook.lua
hook.lua.8
loader.conf.lua.5
loader.lua
menu.lua loader: improve lua ACPI detection and handling 2023-11-20 14:03:59 -05:00
menu.lua.8
password.lua
password.lua.8
screen.lua
screen.lua.8