LOADER.CONF.LUA(5)
π LOADER.CONF.LUA(5) π
okay so bestie, get comfy β this is loader.conf.lua, from the File Formats Manual section, and it's literally the whole "system bootstrap Lua configuration information" situation π
β¨ NAME β¨
loader.conf.lua β system bootstrap Lua configuration information πΈ
π¦ DESCRIPTION π¦
So here's the vibe: when the lua-based loader(8) spots a filename over in loader_conf_files that has a .lua suffix, it's gonna load that file up and execute it with the lua interpreter β but in a limited environment, okay? lowkey important π
And that limited environment? It does not contain the ability to reference or load any other lua modules. nope, not happening, not today π What it does have: existing loader environment variables can be referenced as if they were already defined global variables. so cute, so convenient π
A lua configuration file may set any global variable, and those get subsequently processed and added to the environment after execution of the configuration file has completed β¨ Other than the exec setting, all the variables described in loader.conf(5) operate exactly the same in the loader.conf.lua environment. same energy, different font π
π«Ά heads up bestie: the settings describing module options can only be set in the environment β there is currently no way for a loader.conf.lua to fetch them. And at this time, global table and function values are ignored. π
Also the config.buildenv() hook will be run with an empty environment provided to it, and that environment may be populated by a custom local.lua. the more u know π
π SEE ALSO π
π AUTHORS π
The mechanism for loading loader.conf.lua files was originally written by Kyle Evans <kevans@FreeBSD.org>. absolute icon, we stan π«Άπ₯
βΏ and that's the whole page, bestie βΏ This vibe check came from the Debian edition, dated May 10, 2023, of the LOADER.CONF.LUA(5) manual page. go configure ur bootloader, main character π
ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π the page's license: BSD-2-Clause
- Copyright (c) 2020 Kyle Evans <kevans@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms