FreeBSD Bugzilla – Attachment 241367 Details for
Bug 265471
/boot/lua/menu.lua boots kernel from incorrect bootenv when bootenv is changed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Unload any previously loaded kernel when changing boot environment.
menu.lua.diff (text/plain), 412 bytes, created by
crahman
on 2023-04-09 08:09:05 UTC
(
hide
)
Description:
Unload any previously loaded kernel when changing boot environment.
Filename:
MIME Type:
Creator:
crahman
Created:
2023-04-09 08:09:05 UTC
Size:
412 bytes
patch
obsolete
>diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua >index 400dbf3d469b..4a326cb54bb9 100644 >--- a/stand/lua/menu.lua >+++ b/stand/lua/menu.lua >@@ -58,6 +58,9 @@ local function bootenvSet(env) > loader.setenv("vfs.root.mountfrom", env) > loader.setenv("currdev", env .. ":") > config.reload() >+ if loader.getenv("kernelname") ~= nil then >+ loader.perform("unload") >+ end > end > > local function multiUserPrompt()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265471
:
235516
|
235518
| 241367