opnsense-src/stand/lua
Kyle Evans 15b946de99 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

(cherry picked from commit d04415c520b031fb8eb93cb252e4acee66149c87)
2024-01-02 22:47:21 -06:00
..
cli.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
cli.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
color.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
color.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
config.lua stand: lua: module names should permit more 2023-09-11 17:01:52 -05:00
config.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
core.lua loader: lua: remove the default kernel if it doesn't exist 2024-01-02 22:47:21 -06:00
core.lua.8 loader: provide a features table for binary compatibility advertisement 2024-01-02 22:47:21 -06:00
drawer.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
drawer.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
gfx-beastie.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-beastiebw.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-fbsdbw.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-orb.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
gfx-orbbw.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
hook.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
hook.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
loader.conf.lua.5 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
loader.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
menu.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
menu.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
password.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
password.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
screen.lua Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:30 -06:00
screen.lua.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00