Page MenuHomeFreeBSD

stand: Fix brand positioning on framebuffer console
ClosedPublic

Authored by jlduran on Feb 21 2025, 2:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 6, 2:48 AM
Unknown Object (File)
Sun, Oct 4, 4:02 AM
Unknown Object (File)
Sun, Oct 4, 1:09 AM
Unknown Object (File)
Sat, Oct 3, 11:46 PM
Unknown Object (File)
Mon, Sep 14, 9:24 PM
Unknown Object (File)
Sun, Sep 13, 2:04 AM
Unknown Object (File)
Sep 2 2026, 1:02 PM
Unknown Object (File)
Aug 31 2026, 11:40 AM
Subscribers

Details

Summary

The drawer.lua script ignores the values in loader_brand_x and
loader_brand_y on framebuffer consoles, always positioning the brand at
(1, 1).

Allow it to be positioned by accepting the x and y values just like the
text version. For example:

/boot/lua/gfx-nanobsd.lua:

return {
	brand = {
		graphic = {
			""
		},
		requires_color = true,
		image = "/boot/images/freebsd-logo-rev.png"
	}
}

/boot/loader.conf.d/bootloader.conf:

loader_logo="none"
loader_brand="nanobsd"
loader_brand_x="15"

PR: 255202

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62558
Build 59442: arc lint + arc unit