Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2026 02:20:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 292232] loader: kernels_autodetect fails on initial load
Message-ID:  <bug-292232-227-lfwJIo2KoH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-292232-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292232

--- Comment #1 from Kyle Evans <kevans@freebsd.org> ---
Wild ass guess, the oversight is probably this (not even remotely tested)

diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index ad417e5f97e5..a006a3d5da26 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -289,6 +289,8 @@ function core.kernelList()
                                kernels[n] = kernels[n + 1]
                        end
                end
+
+               loader.setenv("kernel", kernels[1])
        end

        core.cached_kernels = kernels

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292232-227-lfwJIo2KoH>