opnsense-src/stand
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
..
arm64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
common Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
defaults Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
efi stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -05:00
fdt Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
ficl Remove $FreeBSD$: one-line forth tag 2023-08-16 11:55:43 -06:00
ficl32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fonts Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
forth Remove $FreeBSD$: one-line forth tag 2023-08-16 11:55:43 -06:00
i386 Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
images Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kboot stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -05:00
kshim Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
liblua loader: provide a features table for binary compatibility advertisement 2024-01-02 22:47:21 -06:00
liblua32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libofw Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libsa loader: provide a features table for binary compatibility advertisement 2024-01-02 22:47:21 -06:00
libsa32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua loader: lua: remove the default kernel if it doesn't exist 2024-01-02 22:47:21 -06:00
man Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
powerpc stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -05:00
uboot stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -05:00
usb Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
userboot Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
defs.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fdt.mk stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -05:00
ficl.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00