freebsd-dev/stand/lua
Kyle Evans 3cb2f5f369 lualoader: add support for .lua configuration files
If a file is specified in loader_conf_files that ends in '.lua', lualoader
will now load and execute that file. These may be used in place of a
traditional loader.conf to use more complicated logic, where some values
may be set based on others or based on the environment that the C bits has
left us with.

Lua scripts are run in a limited environment. In particular, it does not get
access to any modules or, in-fact, anything except environment variable.

A config.buildenv hook has been added so that a local module can add
whatever it may need to to the environment.

When a global var is set in the lua script, it does not immediately alter
the loader environment. Instead, the script's environment is initially
empty and processed only if the whole script executes successfully.
Effectively, a lua configuration file either takes effect or it does not,
an error will not leave it in a half-baked state.

Reviewed by:	bcr (manpages), imp
Differential Revision:	https://reviews.freebsd.org/D28450
2023-05-10 23:10:53 -05:00
..
cli.lua lua loader: Add disable-device to disable a device. 2021-07-28 16:53:00 -06:00
cli.lua.8 cli.lua.8: make the command match the code 2021-07-28 20:54:14 -06:00
color.lua loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
color.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
config.lua lualoader: add support for .lua configuration files 2023-05-10 23:10:53 -05:00
config.lua.8 lualoader: add support for .lua configuration files 2023-05-10 23:10:53 -05:00
core.lua Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
core.lua.8 Eliminate zfsloader man page. 2018-07-20 05:17:49 +00:00
drawer.lua lualoader: allow brands to specify a shift 2021-09-09 02:01:50 -05:00
drawer.lua.8 Add drawer.lua(8) 2018-08-20 02:08:39 +00:00
gfx-beastie.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
gfx-beastiebw.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
gfx-fbsdbw.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
gfx-orb.lua loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
gfx-orbbw.lua lualoader: improve the design of the brand-/logo- mechanism 2020-10-04 22:41:43 +00:00
hook.lua lualoader: add support for .lua configuration files 2023-05-10 23:10:53 -05:00
hook.lua.8 lualoader: add support for .lua configuration files 2023-05-10 23:10:53 -05:00
loader.conf.lua.5 lualoader: add support for .lua configuration files 2023-05-10 23:10:53 -05:00
loader.lua loader: Fully reset terminal settings, not just colors 2020-03-27 17:37:31 +00:00
Makefile lualoader: add support for .lua configuration files 2023-05-10 23:10:53 -05:00
menu.lua loader: lua: unload the kernel when changing BEs 2023-04-15 21:39:52 -05:00
menu.lua.8 luaboot: visible must be a function 2021-03-31 22:35:52 -06:00
password.lua loader: lua: disable autoboot timer after password entry 2023-04-15 21:39:56 -05:00
password.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
screen.lua lualoader: don't botch disabling of color 2019-10-21 20:09:43 +00:00
screen.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00