]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: lua: unload the kernel when changing BEs
authorCyrus Rahman <crahman@gmail.com>
Sun, 16 Apr 2023 02:27:53 +0000 (21:27 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 20 Apr 2023 04:15:15 +0000 (23:15 -0500)
commit7e5811f76bb0df289b32144849331a2db83ac718
treed12cad569fd507698ee63793956d2ad6abfd292f
parentac7506f22fa6420a85327a3831e766706003c36c
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

(cherry picked from commit d7584aa09fcf8d96544e5bfb3ea78f50d7720c0c)
stand/lua/menu.lua