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)
Wed, Nov 12, 7:47 PM
Unknown Object (File)
Thu, Nov 6, 2:22 PM
Unknown Object (File)
Thu, Nov 6, 2:08 AM
Unknown Object (File)
Sun, Nov 2, 5:07 AM
Unknown Object (File)
Tue, Oct 28, 4:53 AM
Unknown Object (File)
Oct 17 2025, 7:33 AM
Unknown Object (File)
Oct 15 2025, 7:21 AM
Unknown Object (File)
Oct 14 2025, 4:52 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