Page MenuHomeFreeBSD

lualoader: Add loader_menu_multi_user_prompt config variable
ClosedPublic

Authored by jrtc27 on Sep 1 2022, 10:17 PM.

Details

Summary

This allows the "Multi user" in "[B]oot Multi user" to be substituted
with another string, for example with "Installer" in installer media.
Note that this is lua-only at the moment, since loader.4th's menu.rc
defines the alternate name as Boot [M]ulti User, unlike lualoader which
leaves it as [B]oot Multi user. Ideally loader.4th would adopt the newer
and simpler lualoader behaviour and then it could gain support for this
option, but loader.4th is on the way out and isn't used by any official
installer media so this is not a significant concern.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Sep 1 2022, 10:42 PM

I'd think that the loader_ prefix is a bit much...

In D36418#827224, @imp wrote:

I'd think that the loader_ prefix is a bit much...

This was to match loader_menu_frame/timeout_[xy]/title(_align)/[xy] that already exist to influence various ways the menu is displayed (although mostly in drawer.lua not menu.lua)

Seems fine to me, thanks!