2018-02-12 16:32:00 +01:00
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
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-11 06:10:53 +02:00
|
|
|
MAN= loader.conf.lua.5 \
|
|
|
|
cli.lua.8 \
|
2018-08-20 04:40:10 +02:00
|
|
|
color.lua.8 \
|
|
|
|
config.lua.8 \
|
|
|
|
core.lua.8 \
|
|
|
|
drawer.lua.8 \
|
2024-02-16 04:53:55 +01:00
|
|
|
gfx.lua.8 \
|
2018-08-20 04:40:10 +02:00
|
|
|
hook.lua.8 \
|
2024-02-10 19:49:09 +01:00
|
|
|
loader.lua.8 \
|
2018-08-20 04:40:10 +02:00
|
|
|
menu.lua.8 \
|
|
|
|
password.lua.8 \
|
|
|
|
screen.lua.8
|
|
|
|
|
2019-11-02 04:37:58 +01:00
|
|
|
FILESDIR= ${LUAPATH}
|
2018-02-22 02:21:39 +01:00
|
|
|
FILES= cli.lua \
|
|
|
|
color.lua \
|
2018-02-12 16:32:00 +01:00
|
|
|
config.lua \
|
|
|
|
core.lua \
|
|
|
|
drawer.lua \
|
2018-03-21 04:07:16 +01:00
|
|
|
hook.lua \
|
2018-02-12 16:32:00 +01:00
|
|
|
loader.lua \
|
2018-08-20 18:27:31 +02:00
|
|
|
logo-hardenedbsd.lua \
|
|
|
|
logo-hardenedbsdbw.lua \
|
2020-10-05 00:41:43 +02:00
|
|
|
gfx-beastie.lua \
|
|
|
|
gfx-beastiebw.lua \
|
|
|
|
gfx-fbsdbw.lua \
|
2021-06-05 22:20:01 +02:00
|
|
|
gfx-hbsd.lua \
|
2020-10-05 00:41:43 +02:00
|
|
|
gfx-orb.lua \
|
|
|
|
gfx-orbbw.lua \
|
2018-02-12 16:32:00 +01:00
|
|
|
menu.lua \
|
|
|
|
password.lua \
|
|
|
|
screen.lua
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|