opnsense-src/stand/lua
Kyle Evans 842bee699f lualoader: allow the local module to filter out the BE list
This allows something like the following local.lua to install a filter
to implement its own notion of hidden BEs using a naming convention of
a leading dot to hide them:

-- file: /boot/lua/local.lua
local core = require("core")

local function be_hide(be)
    if core.isSingleUserBoot() then
        -- All BEs are accepted for single-user
        return true
    end

    local name = be:match("/([^/]+)$")
    if not name then
        -- Accept malformed BEs, for whatever reason
        return true
    end

    return name:match("^%.") == nil
end

if core.bootenvFilter then
    -- Just in case we need to be compatible with older versions of
    -- core.lua without the filtering functionality.
    core.bootenvFilter(be_hide)
end
-- EOF

Requested by:	Marek Zarychta
Reviewed by:	imp

(cherry picked from commit bf0881060ecd75ce79683b82ebcd4809eadf7cf5)
2026-04-12 22:12:35 -05:00
..
cli.lua Revert "loader/lua: Remove pager shim" 2024-07-29 16:56:55 -06:00
cli.lua.8 cli.lua.8: Reflow literal comments 2025-10-10 12:15:06 -04:00
color.lua
color.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
config.lua stand: lines with comments a '"' in loader.conf are ignored 2025-03-16 08:46:57 -06:00
config.lua.8 stand/lua: Fix two typos in the manual pages 2025-11-22 10:17:34 +01:00
core.lua lualoader: allow the local module to filter out the BE list 2026-04-12 22:12:35 -05:00
core.lua.8 lualoader: allow the local module to filter out the BE list 2026-04-12 22:12:35 -05:00
drawer.lua lualoader: adapt builtin brand/logo definitions as well 2025-06-18 10:21:37 -05:00
drawer.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
gfx-beastie.lua loader: Fix beastie and fbsdbw logo positions 2025-05-29 12:37:03 -06:00
gfx-beastiebw.lua loader: Fix beastie and fbsdbw logo positions 2025-05-29 12:37:03 -06:00
gfx-fbsdbw.lua loader: Fix beastie and fbsdbw logo positions 2025-05-29 12:37:03 -06:00
gfx-install.lua lualoader: Add distinct brand for installer 2025-06-24 12:11:15 -03:00
gfx-orb.lua stand: lua: convert orb to a new format that allows per-graphic shift 2025-06-12 21:23:39 -05:00
gfx-orbbw.lua stand: lua: convert orb to a new format that allows per-graphic shift 2025-06-12 21:23:39 -05:00
gfx.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
hook.lua
hook.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
loader.conf.lua.5 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
loader.lua loader: Load platform entropy even without menu 2024-09-22 00:35:48 -07:00
loader.lua.8 stand/lua: Fix two typos in the manual pages 2025-11-22 10:17:34 +01:00
Makefile lualoader: Add distinct brand for installer 2025-06-24 12:11:15 -03:00
Makefile.depend loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
menu.lua loader: Add loader_autoboot_show 2025-04-17 10:18:20 +02:00
menu.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
password.lua
password.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00
screen.lua loader: Fix 0 vs 1 confusion for column numbers 2024-09-24 14:18:42 -06:00
screen.lua.8 stand/lua manuals: Describe better 2025-05-12 16:58:40 -04:00