HomeFreeBSD

loader: lua: unload the kernel when changing BEs

Description

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)

Details

Provenance
crahman_gmail.comAuthored on Apr 16 2023, 2:27 AM
kevansCommitted on Apr 20 2023, 4:15 AM
Parents
rGac7506f22fa6: tty: Default to printing kernel stack traceback only on INVARIANT kernels
Branches
Unknown
Tags
Unknown