OPNsense - FreeBSD source
Find a file
Kyle Evans 6dabfd3efe lualoader: fix pruning of non-existent default kernel
Removing the kernel from the list of available kernels is sufficient to
avoid rendering it in the list, but we need more for booting to actually
work.  Notably, the 'kernel' loader.conf var was left intact to its
default value, so if one didn't use the kernel selector in the menu then
we'd try to boot the nonexistent 'kernel' instead of the new default
(first autodetected).

There's room to improve the error messages here, but for now let's just
make it actually work correctly.

PR:		292232
Fixes:	d04415c520 ("loader: lua: remove the default kernel [...]")
(cherry picked from commit e30086ab4c8778ea70a3b19e83546ce1b4a16492)
2026-01-19 22:04:46 -06:00
.cirrus-ci
.github .github: Use make.py's --cross-toolchain option on macOS 2025-08-06 16:14:37 -04:00
bin sh: avoid warnings about too-long initializer strings 2026-01-02 21:40:38 +01:00
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib Import latest mtree from NetBSD 2026-01-18 03:56:23 +00:00
crypto openssh: Don't attempt to connect to unsupported addresses 2025-11-25 03:18:24 +00:00
etc libc/tests: add stdbit test framework and unit tests 2026-01-01 21:57:32 +01:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include stdbool.h: Update for C23 2026-01-13 09:01:56 -05:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Remove extraneous exports file 2026-01-05 12:00:01 -08:00
lib bectl: log modifying functions to zpool history 2026-01-19 22:04:40 -06:00
libexec nuageinit: set the hostname when user-data is missing 2026-01-14 13:30:43 +01:00
release GCE: ARM64 Support: Add hw.pci.honor_msi_blacklist=0. 2026-01-17 18:55:04 -08:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin bectl: log modifying functions to zpool history 2026-01-19 22:04:40 -06:00
secure libcrypto: Install tests in the tests package 2025-11-07 05:16:08 +00:00
share makedev(9): drop an additional note about cdevpriv dtors 2026-01-19 22:04:33 -06:00
stand lualoader: fix pruning of non-existent default kernel 2026-01-19 22:04:46 -06:00
sys net80211: fix arguments to IEEE80211_NOTE in ieee80211_fix_rate 2026-01-17 07:51:24 +00:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests pf: Fix state handling when ICMP packets are diverted 2026-01-06 15:56:49 +00:00
tools depend-cleanup.sh: Reduce repetition 2026-01-12 17:18:21 +00:00
usr.bin sockstat: improve formataddr() according to style(9) 2026-01-19 23:08:30 +01:00
usr.sbin makefs.8: Cleanup man page 2026-01-15 19:39:10 +00:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: Switch back to tzst packages, but use level 1 2025-10-14 20:47:10 -04:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.clean_build_epoch build: introduce the notion of a build epoch 2025-08-14 23:43:42 -05:00
.git-blame-ignore-revs git-blame-ignore-revs: witness white space cleanup and style(9) tweeks 2025-08-29 18:01:43 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore src.sys.mk: Support src.conf in SRCTOP 2025-09-16 13:27:43 +00:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING: Tweak the language 2025-08-08 11:16:13 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile Makefile: Force DISTDIR=/ for (update-)packages 2025-10-10 05:29:35 +01:00
Makefile.inc1 depend-cleanup: Force a clean build when options change 2026-01-12 17:18:21 +00:00
Makefile.libcompat Makefile.libcompat: Use same PATH for _lc_build-tools as _build-tools 2025-08-22 21:46:15 +01:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc apm(8): Drop MLINK to apmconf(8) 2025-12-18 17:50:14 -05:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Add entry for 256d05617c 2026-01-12 11:01:11 -07:00
UPDATING UPDATING: Add an entry for f27afc4765 2025-11-23 12:39:46 -08:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.