<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/stand/lua, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>core.lua: follow symlinks when looking for bootable kernels</title>
<updated>2026-06-16T23:48:16+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=1841091eaa0b2e1f71600c892d3ce041a57bae3c'/>
<id>1841091eaa0b2e1f71600c892d3ce041a57bae3c</id>
<content type='text'>
PR: 293654
Reviewed by:	kevans
Approved by:	kevans
Differential Revision:	https://reviews.freebsd.org/D55713

(cherry picked from commit e6d579be42550f366cc85188b15c6eb0cad27367)
</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

(cherry picked from commit e6d579be42550f366cc85188b15c6eb0cad27367)
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: add be-list and be-switch commands</title>
<updated>2026-06-10T04:00:49+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-06-04T13:57:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bddfcbd9bbc68fe11ce53954b7f82584cd5ee40b'/>
<id>bddfcbd9bbc68fe11ce53954b7f82584cd5ee40b</id>
<content type='text'>
This is useful for driving BE changes from the loader command prompt,
rather than having to use the menu.  Note that the active carousel in
the boot environment carousel doesn't currently reflect a switch in
boot environments done this way- I'm considering this only a minor bug,
as you probably can't or won't go back to the menu if you're using these
commands.

Reviewed by:	imp (previous version)

(cherry picked from commit c7ff706b31c22f10c2403869c46b443448da3e08)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is useful for driving BE changes from the loader command prompt,
rather than having to use the menu.  Note that the active carousel in
the boot environment carousel doesn't currently reflect a switch in
boot environments done this way- I'm considering this only a minor bug,
as you probably can't or won't go back to the menu if you're using these
commands.

Reviewed by:	imp (previous version)

(cherry picked from commit c7ff706b31c22f10c2403869c46b443448da3e08)
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: allow the local module to filter out the BE list</title>
<updated>2026-04-13T14:43:16+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=9ef671ef0c6c50e85a35d867ef1c7890f9de91af'/>
<id>9ef671ef0c6c50e85a35d867ef1c7890f9de91af</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

(cherry picked from commit bf0881060ecd75ce79683b82ebcd4809eadf7cf5)
</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

(cherry picked from commit bf0881060ecd75ce79683b82ebcd4809eadf7cf5)
</pre>
</div>
</content>
</entry>
<entry>
<title>loader: Fix beastie and fbsdbw logo positions</title>
<updated>2026-03-25T19:22:52+00:00</updated>
<author>
<name>Marek Zarychta</name>
<email>zarychtam@plan-b.pwste.edu.pl</email>
</author>
<published>2025-05-29T16:36:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9ac7e0362a2490f5de0e23507cc5159cc03a3334'/>
<id>9ac7e0362a2490f5de0e23507cc5159cc03a3334</id>
<content type='text'>
Fix the beaste, beastiebw and fbsdbw postions broken after
ee233742a569

PR: 285044, 286356
Fixes: 1b4e11713153
Reviewed by: imp
MFC After: 2 days (14.3 candiate)
Sponsored by: PANS Jarosław
(cherry picked from commit 9486d6d57d14844972ee63382045e2ed7a300963)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the beaste, beastiebw and fbsdbw postions broken after
ee233742a569

PR: 285044, 286356
Fixes: 1b4e11713153
Reviewed by: imp
MFC After: 2 days (14.3 candiate)
Sponsored by: PANS Jarosław
(cherry picked from commit 9486d6d57d14844972ee63382045e2ed7a300963)
</pre>
</div>
</content>
</entry>
<entry>
<title>cli.lua.8: Reflow literal comments</title>
<updated>2026-02-06T00:20:17+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=5f6144238c540b72291b9595c89193034eb6a004'/>
<id>5f6144238c540b72291b9595c89193034eb6a004</id>
<content type='text'>
Reflow comments in literal text blocks
so this manual is legible at MANWIDTH 78.

MFC after:	1 day

(cherry picked from commit de36d0dbaeaf05e9bf949fdf22b560c34b2c0d74)
</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

(cherry picked from commit de36d0dbaeaf05e9bf949fdf22b560c34b2c0d74)
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: Add distinct brand for installer</title>
<updated>2026-01-28T01:03:36+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=9f0b953443b7dd7f33b8a461651c9d9ed2912d46'/>
<id>9f0b953443b7dd7f33b8a461651c9d9ed2912d46</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

(cherry picked from commit ac7a19d41ee5eb1271c46fbc620b2f98dffa2230)
</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

(cherry picked from commit ac7a19d41ee5eb1271c46fbc620b2f98dffa2230)
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: fix pruning of non-existent default kernel</title>
<updated>2026-01-20T04:08:11+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=4f0342cf84dbe4fadbfea02e3279aafab36ea848'/>
<id>4f0342cf84dbe4fadbfea02e3279aafab36ea848</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 [...]")
(cherry picked from commit e30086ab4c8778ea70a3b19e83546ce1b4a16492)
</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 [...]")
(cherry picked from commit e30086ab4c8778ea70a3b19e83546ce1b4a16492)
</pre>
</div>
</content>
</entry>
<entry>
<title>stand/lua: Fix two typos in the manual pages</title>
<updated>2025-11-22T09:19:46+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=5705569f3c00fdaedfa7c0ced2d1c51c8d3d2370'/>
<id>5705569f3c00fdaedfa7c0ced2d1c51c8d3d2370</id>
<content type='text'>
- s/Additionnaly/Additionally/
- s/commmand/command/

(cherry picked from commit 6f14b6025a6f6475522697362aaf6c84514b85bf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- s/Additionnaly/Additionally/
- s/commmand/command/

(cherry picked from commit 6f14b6025a6f6475522697362aaf6c84514b85bf)
</pre>
</div>
</content>
</entry>
<entry>
<title>lualoader: adapt builtin brand/logo definitions as well</title>
<updated>2025-07-21T02:12:27+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=cd8ab8cecff5eca1b6aaf671a840ee840c8e73c7'/>
<id>cd8ab8cecff5eca1b6aaf671a840ee840c8e73c7</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

(cherry picked from commit abdbd85d1b6af892c18eaae0330a146b01ff6712)
</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

(cherry picked from commit abdbd85d1b6af892c18eaae0330a146b01ff6712)
</pre>
</div>
</content>
</entry>
<entry>
<title>loader: Fix loader_brand = none</title>
<updated>2025-07-21T02:12:26+00:00</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2025-06-16T12:23:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8b6be727885d1b9eedae4b0e66674dc9cf2b69bb'/>
<id>8b6be727885d1b9eedae4b0e66674dc9cf2b69bb</id>
<content type='text'>
Setting loader_brand to none in loader.conf now result in a lua error
as we try to get a non-existant table
Defines it

Fixes:	bef6d85b6de5 ("lualoader: allow graphical bits to be disabled with loader_gfx")
Reviewed by:	kevans, tsoome
Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG

(cherry picked from commit 7e1930480bef285cca1c14c25b4fd62abdf5dabf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting loader_brand to none in loader.conf now result in a lua error
as we try to get a non-existant table
Defines it

Fixes:	bef6d85b6de5 ("lualoader: allow graphical bits to be disabled with loader_gfx")
Reviewed by:	kevans, tsoome
Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG

(cherry picked from commit 7e1930480bef285cca1c14c25b4fd62abdf5dabf)
</pre>
</div>
</content>
</entry>
</feed>
