lualoader: Fix menu skipping with loader.conf(5) vars
Earlier efforts to stop loading the menu broke the ability to skip the menu with, e.g., beastie_disable in loader.conf(5) as it was decided before configuration was read. Defer bringing in the menu module until we've loaded configuration so that we can make a more informed decision on whether the menu should be skipped or not.
This commit is contained in:
parent
4a432d6fa5
commit
814a016d28
@ -37,15 +37,17 @@ require("cli")
|
||||
local color = require("color")
|
||||
local core = require("core")
|
||||
local config = require("config")
|
||||
local menu
|
||||
if not core.isMenuSkipped() then
|
||||
menu = require("menu")
|
||||
end
|
||||
local password = require("password")
|
||||
-- The menu module will be brought in after config has loaded if we actually
|
||||
-- need it.
|
||||
local menu
|
||||
|
||||
try_include("local")
|
||||
|
||||
config.load()
|
||||
if not core.isMenuSkipped() then
|
||||
menu = require("menu")
|
||||
end
|
||||
if core.isUEFIBoot() then
|
||||
loader.perform("efi-autoresizecons")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user