freebsd-dev/stand/lua
Kyle Evans 9937e97979 lualoader: Re-work menu skipping bits
This is motivated by a want to reduce heap usage if the menu is being
skipped. Currently, the menu module must be loaded regardless of whether
it's being skipped or not, which adds a cool ~50-100KB worth of memory
usage.

Move the menu skip logic out to core (and remove a debug print), then check
in loader.lua if we should be skipping the menu and avoid loading the menu
module entirely if so. This keeps our memory usage below ~115KB for a boot
with the menu stripped.

Also worth noting: with this change, we no longer explicitly invoke autoboot
if we're skipping the menu. Instead, we let the standard loader behavior
apply: try to autoboot if we need to, then drop to a loader prompt if not or
if the autoboot sequence is interrupted. The only thing we still handle
before dropping to the loader autoboot sequence is loadelf(), so that we can
still apply any of our kernel loading behavior.
2018-02-26 15:37:32 +00:00
..
cli.lua lualoader: Explain deviation from naming guidelines 2018-02-25 05:14:06 +00:00
color.lua lualoader: More argument name expansion, part 2 2018-02-26 04:08:54 +00:00
config.lua lualoader: More argument name expansion, part 2 2018-02-26 04:08:54 +00:00
core.lua lualoader: Re-work menu skipping bits 2018-02-26 15:37:32 +00:00
drawer.lua lualoader: More argument name expansion, part 2 2018-02-26 04:08:54 +00:00
loader.lua lualoader: Re-work menu skipping bits 2018-02-26 15:37:32 +00:00
Makefile lualoader: Split cli bits out into a cli module 2018-02-22 01:21:39 +00:00
menu.lua lualoader: Re-work menu skipping bits 2018-02-26 15:37:32 +00:00
password.lua lualoader: Clean up naming conventions a little bit 2018-02-24 20:21:21 +00:00
screen.lua lualoader: screen argument fixes 2018-02-26 04:12:54 +00:00