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, Jun 9, 11:40 PM
Unknown Object (File)
Mon, Jun 8, 3:54 PM
Unknown Object (File)
Fri, Jun 5, 5:27 AM
Unknown Object (File)
May 8 2026, 8:16 PM
Unknown Object (File)
Apr 28 2026, 6:43 AM
Unknown Object (File)
Apr 27 2026, 3:35 PM
Unknown Object (File)
Apr 24 2026, 10:44 AM
Unknown Object (File)
Apr 23 2026, 3:51 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 Not Applicable
Unit
Tests Not Applicable