<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/stand/lua, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>lualoader: allow the local module to filter out the BE list</title>
<updated>2026-04-08T12:49:58+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-04-08T12:49:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bf0881060ecd75ce79683b82ebcd4809eadf7cf5'/>
<id>bf0881060ecd75ce79683b82ebcd4809eadf7cf5</id>
<content type='text'>
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
Differential Revision:	https://reviews.freebsd.org/D55359
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
Differential Revision:	https://reviews.freebsd.org/D55359
</pre>
</div>
</content>
</entry>
<entry>
<title>core.lua: follow symlinks when looking for bootable kernels</title>
<updated>2026-03-09T21:47:47+00:00</updated>
<author>
<name>Craig Leres</name>
<email>leres@FreeBSD.org</email>
</author>
<published>2026-03-09T21:47:10+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e6d579be42550f366cc85188b15c6eb0cad27367'/>
<id>e6d579be42550f366cc85188b15c6eb0cad27367</id>
<content type='text'>
PR: 293654
Reviewed by:	kevans
Approved by:	kevans
Differential Revision:	https://reviews.freebsd.org/D55713
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR: 293654
Reviewed by:	kevans
Approved by:	kevans
Differential Revision:	https://reviews.freebsd.org/D55713
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: fix pruning of non-existent default kernel</title>
<updated>2026-01-07T18:20:05+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-01-07T18:20:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e30086ab4c8778ea70a3b19e83546ce1b4a16492'/>
<id>e30086ab4c8778ea70a3b19e83546ce1b4a16492</id>
<content type='text'>
Removing the kernel from the list of available kernels is sufficient to
avoid rendering it in the list, but we need more for booting to actually
work.  Notably, the 'kernel' loader.conf var was left intact to its
default value, so if one didn't use the kernel selector in the menu then
we'd try to boot the nonexistent 'kernel' instead of the new default
(first autodetected).

There's room to improve the error messages here, but for now let's just
make it actually work correctly.

PR:		292232
Fixes:	d04415c520b03 ("loader: lua: remove the default kernel [...]")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removing the kernel from the list of available kernels is sufficient to
avoid rendering it in the list, but we need more for booting to actually
work.  Notably, the 'kernel' loader.conf var was left intact to its
default value, so if one didn't use the kernel selector in the menu then
we'd try to boot the nonexistent 'kernel' instead of the new default
(first autodetected).

There's room to improve the error messages here, but for now let's just
make it actually work correctly.

PR:		292232
Fixes:	d04415c520b03 ("loader: lua: remove the default kernel [...]")
</pre>
</div>
</content>
</entry>
<entry>
<title>stand/lua: Fix two typos in the manual pages</title>
<updated>2025-11-19T14:23:07+00:00</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2025-11-19T14:23:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6f14b6025a6f6475522697362aaf6c84514b85bf'/>
<id>6f14b6025a6f6475522697362aaf6c84514b85bf</id>
<content type='text'>
- s/Additionnaly/Additionally/
- s/commmand/command/

MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- s/Additionnaly/Additionally/
- s/commmand/command/

MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>cli.lua.8: Reflow literal comments</title>
<updated>2025-10-09T21:13:54+00:00</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2025-10-09T21:13:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=de36d0dbaeaf05e9bf949fdf22b560c34b2c0d74'/>
<id>de36d0dbaeaf05e9bf949fdf22b560c34b2c0d74</id>
<content type='text'>
Reflow comments in literal text blocks
so this manual is legible at MANWIDTH 78.

MFC after:	1 day
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reflow comments in literal text blocks
so this manual is legible at MANWIDTH 78.

MFC after:	1 day
</pre>
</div>
</content>
</entry>
<entry>
<title>core.lua: Consistently check for single user</title>
<updated>2025-09-29T01:45:01+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-09-28T19:19:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ebc32e74b6f98a6f2b9ed7cba0078cd64d48701f'/>
<id>ebc32e74b6f98a6f2b9ed7cba0078cd64d48701f</id>
<content type='text'>
While boot_single:lower() should always be in {yes,no}, it might not
be. In one place we check == yes, and another ~= no. Make both places ~=
no for consistency. We generally try to test != default.

Sponsored by:		Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While boot_single:lower() should always be in {yes,no}, it might not
be. In one place we check == yes, and another ~= no. Make both places ~=
no for consistency. We generally try to test != default.

Sponsored by:		Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>loader: make disable-device more rebust</title>
<updated>2025-09-29T01:45:01+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-09-28T17:58:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b7473a5d68b8ade1ce6c6c08965fe284cc70bd75'/>
<id>b7473a5d68b8ade1ce6c6c08965fe284cc70bd75</id>
<content type='text'>
Check the number of arguments and ensure that the passed-in device to
disable parses correctly.

Sponsored by:		Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check the number of arguments and ensure that the passed-in device to
disable parses correctly.

Sponsored by:		Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>stand: Remove support for FreeBSD 12.2 and earlier</title>
<updated>2025-09-29T01:45:00+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-09-28T06:40:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=55025f42f6fa517aaffc902b3d69fc707536907d'/>
<id>55025f42f6fa517aaffc902b3d69fc707536907d</id>
<content type='text'>
Remove 'pager' shim that was last not supported in FreeBSD 12.2, which
went EOL on March 31, 2022. People have had enough time to upgrade the
boot loader.

Sponsored by:		Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove 'pager' shim that was last not supported in FreeBSD 12.2, which
went EOL on March 31, 2022. People have had enough time to upgrade the
boot loader.

Sponsored by:		Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: Add distinct brand for installer</title>
<updated>2025-06-24T15:11:15+00:00</updated>
<author>
<name>Joseph Mingrone</name>
<email>jrm@FreeBSD.org</email>
</author>
<published>2025-06-23T20:47:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ac7a19d41ee5eb1271c46fbc620b2f98dffa2230'/>
<id>ac7a19d41ee5eb1271c46fbc620b2f98dffa2230</id>
<content type='text'>
Make it obvious to users that the system is booting into the installer.

Reviewed by:	kevans, manu
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D51001
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make it obvious to users that the system is booting into the installer.

Reviewed by:	kevans, manu
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D51001
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: adapt builtin brand/logo definitions as well</title>
<updated>2025-06-18T15:21:37+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2025-06-18T15:12:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=abdbd85d1b6af892c18eaae0330a146b01ff6712'/>
<id>abdbd85d1b6af892c18eaae0330a146b01ff6712</id>
<content type='text'>
While these should be moved to the new format, it wasn't my intention
to force them over immediately.  Downstreams may embed their own brands
in drawer.lua, and we shouldn't break them for something like this.

Move adapt_fb_shim() up and use it for preloaded definitions to avoid
forcing the matter for now.  Perhaps in the future we'll start writing
out warnings for those that do need adapted.

Reported by:	0x1eef on IRC
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While these should be moved to the new format, it wasn't my intention
to force them over immediately.  Downstreams may embed their own brands
in drawer.lua, and we shouldn't break them for something like this.

Move adapt_fb_shim() up and use it for preloaded definitions to avoid
forcing the matter for now.  Perhaps in the future we'll start writing
out warnings for those that do need adapted.

Reported by:	0x1eef on IRC
</pre>
</div>
</content>
</entry>
</feed>
