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)
Mon, Aug 25, 10:23 AM
Unknown Object (File)
Wed, Aug 20, 10:41 PM
Unknown Object (File)
Wed, Aug 20, 1:14 AM
Unknown Object (File)
Tue, Aug 19, 11:28 PM
Unknown Object (File)
Tue, Aug 19, 9:18 AM
Unknown Object (File)
Wed, Aug 13, 3:48 PM
Unknown Object (File)
Sun, Aug 10, 7:41 AM
Unknown Object (File)
Fri, Aug 8, 10:05 PM
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