[Bug 265471] /boot/lua/menu.lua boots kernel from incorrect bootenv when bootenv is changed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 16 Apr 2023 02:40:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265471

--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=d7584aa09fcf8d96544e5bfb3ea78f50d7720c0c

commit d7584aa09fcf8d96544e5bfb3ea78f50d7720c0c
Author:     Cyrus Rahman <crahman@gmail.com>
AuthorDate: 2023-04-16 02:27:53 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-04-16 02:39:52 +0000

    loader: lua: unload the kernel when changing BEs

    Usually the kernel is loaded later, but there are circumstances where it
    could have been loaded earlier than changing BEs.  Unload anything that
    is already there so that we know we're using artifacts from the proper
    environment.

    PR:             265471
    Reviewed by:    kevans
    MFC after:      3 days

 stand/lua/menu.lua | 3 +++
 1 file changed, 3 insertions(+)

-- 
You are receiving this mail because:
You are on the CC list for the bug.