Changeset View
Changeset View
Standalone View
Standalone View
stand/lua/loader.lua
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
if core.isUEFIBoot() then | if core.isUEFIBoot() then | ||||
loader.perform("efi-autoresizecons") | loader.perform("efi-autoresizecons") | ||||
end | end | ||||
-- Our console may have been setup with different settings before we get | -- Our console may have been setup with different settings before we get | ||||
-- here, so make sure we reset everything back to default. | -- here, so make sure we reset everything back to default. | ||||
if color.isEnabled() then | if color.isEnabled() then | ||||
printc(core.KEYSTR_RESET) | printc(core.KEYSTR_RESET) | ||||
end | end | ||||
try_include("local") | local res, err = try_include("local") | ||||
if not res then | |||||
-- Our error object may not be as helpful as we wanted... we'll try | |||||
-- to stringify it in case a local object is trying to error() some | |||||
-- odd non-stringable object (e.g., a table). | |||||
print("Local module failed, error: " .. tostring(err)) | |||||
end | |||||
password.check() | password.check() | ||||
if not core.isMenuSkipped() then | if not core.isMenuSkipped() then | ||||
require("menu").run() | require("menu").run() | ||||
else | else | ||||
-- Load kernel/modules before we go | -- Load kernel/modules before we go | ||||
config.loadelf() | config.loadelf() | ||||
end | end |