Lines Matching full:core

33 local core = {}
53 default_acpi = core.getACPI()
57 core.setACPI(default_acpi)
58 core.setSingleUser(default_single_user)
59 core.setVerbose(default_verbose)
93 core.KEY_BACKSPACE = 8
94 core.KEY_ENTER = 13
95 core.KEY_DELETE = 127
99 core.KEYSTR_ESCAPE = "\027"
100 core.KEYSTR_CSI = core.KEYSTR_ESCAPE .. "["
101 core.KEYSTR_RESET = core.KEYSTR_ESCAPE .. "c"
103 core.MENU_RETURN = "return"
104 core.MENU_ENTRY = "entry"
105 core.MENU_SEPARATOR = "separator"
106 core.MENU_SUBMENU = "submenu"
107 core.MENU_CAROUSEL_ENTRY = "carousel_entry"
109 function core.setVerbose(verbose)
111 verbose = not core.verbose
119 core.verbose = verbose
122 function core.setSingleUser(single_user)
124 single_user = not core.su
132 core.su = single_user
135 function core.hasACPI()
144 return not core.hasFeature("EARLY_ACPI")
147 function core.getACPI()
148 if not core.hasACPI() then
157 function core.setACPI(acpi)
159 acpi = not core.acpi
169 core.acpi = acpi
172 function core.setSafeMode(safe_mode)
174 safe_mode = not core.sm
191 core.sm = safe_mode
194 function core.clearCachedKernels()
198 core.cached_kernels = nil
201 function core.kernelList()
202 if core.cached_kernels ~= nil then
203 return core.cached_kernels
241 core.cached_kernels = kernels
242 return core.cached_kernels
294 core.cached_kernels = kernels
295 return core.cached_kernels
298 function core.bootenvDefault()
302 function core.bootenvList()
315 if core.isRewinded() then
316 curenv = core.bootenvDefaultRewinded()
318 curenv = core.bootenvDefault()
337 function core.isCheckpointed()
341 function core.bootenvDefaultRewinded()
342 local defname = "zfs:!" .. string.sub(core.bootenvDefault(), 5)
359 function core.isRewinded()
363 function core.changeRewindCheckpoint()
364 if core.isRewinded() then
371 function core.loadEntropy()
372 if core.isUEFIBoot() then
380 function core.setDefaults()
381 core.setACPI(default_acpi)
382 core.setSafeMode(default_safe_mode)
383 core.setSingleUser(default_single_user)
384 core.setVerbose(default_verbose)
387 function core.autoboot(argstr)
392 core.loadEntropy()
396 function core.boot(argstr)
401 core.loadEntropy()
405 function core.hasFeature(name)
414 function core.isSingleUserBoot()
419 function core.isUEFIBoot()
425 function core.isZFSBoot()
434 function core.isFramebufferConsole()
447 function core.isSerialConsole()
460 function core.isSerialBoot()
474 function core.isMenuSkipped()
479 function core.deepCopyTable(tbl)
483 new_tbl[k] = core.deepCopyTable(v)
494 function core.popFrontTable(tbl)
514 function core.getConsoleName()
530 function core.nextConsoleChoice()
553 function core.hasUnicode()
564 function core.loaderTooOld()
568 if core.loaderTooOld() then
579 hook.register("config.reloaded", core.clearCachedKernels)
580 return core