59ba5b1dc2
The major problem with the current ordering is that loader.conf may contain all of the magic we need to actually setup the console, so loading local.lua prior to that can make it excessively difficult and annoying to debug (whoops, sorry Ravi & Warner). The new ordering has some implications, but I suspect they are a non-issue. The first is that it's no longer possible for the local module to inject any logic prior to loading config -- I suspect no one has relied on this. The second implication is that the config.loaded hook is now useless, as the local module will always be included after that hook would have fired. For config.loaded, I will opt to leave it in, just in case we add an early point for local lua to get injected or in case one wants to schedule some deferred logic in a custom loader.lua. The overhead of having it if no hooks will be invoked is relatively minimal. Diagnosed by: imp Reported by: imp, rpokala (most likely) MFC after: 3 days |
||
---|---|---|
.. | ||
cli.lua | ||
cli.lua.8 | ||
color.lua | ||
color.lua.8 | ||
config.lua | ||
config.lua.8 | ||
core.lua | ||
core.lua.8 | ||
drawer.lua | ||
drawer.lua.8 | ||
hook.lua | ||
hook.lua.8 | ||
loader.lua | ||
logo-beastie.lua | ||
logo-beastiebw.lua | ||
logo-fbsdbw.lua | ||
logo-orb.lua | ||
logo-orbbw.lua | ||
Makefile | ||
menu.lua | ||
menu.lua.8 | ||
password.lua | ||
password.lua.8 | ||
screen.lua | ||
screen.lua.8 |