mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
loader: unload command should reset tg_kernel_supported in gfx_state
While loading kernel, we check if vt/vbe backend support is included in
kernel and set the tg_kernel_supported flag in gfx_state. unload
command needs to reset this flag to allow next load to perform
this check with new kernel.
Reported by: jhb
(cherry picked from commit 9b388ac303)
This commit is contained in:
parent
1714029b8a
commit
debcf835b1
1 changed files with 2 additions and 0 deletions
|
|
@ -271,6 +271,8 @@ unload(void)
|
|||
}
|
||||
loadaddr = 0;
|
||||
unsetenv("kernelname");
|
||||
/* Reset tg_kernel_supported to allow next load to check it again. */
|
||||
gfx_state.tg_kernel_supported = false;
|
||||
}
|
||||
|
||||
COMMAND_SET(unload, "unload", "unload all modules", command_unload);
|
||||
|
|
|
|||
Loading…
Reference in a new issue