1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

stand: Add "Loader needs updating" to the first menu item"

When the boot loader version is too old, add a warning to the boot menu
to maybe catch people's attention.

Sponsored by:		Netflix
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D45890
This commit is contained in:
Warner Losh 2024-07-29 16:57:37 -06:00
parent a2fd7ae879
commit 0eac99f76e

View File

@ -245,6 +245,7 @@ menu.welcome = {
boot_entry_1, boot_entry_2 = multi_user, single_user
end
return {
loader_needs_upgrade,
boot_entry_1,
boot_entry_2,
menu_entries.prompt,
@ -411,6 +412,15 @@ menu.welcome = {
end,
alias = {"l", "L"},
},
loader_needs_upgrade = {
entry_type = core.MENU_SEPARATOR,
name = function()
return "Loader requires updating"
end
visible = function()
return core.loaderTooOld()
end
},
vendor = {
entry_type = core.MENU_ENTRY,
visible = function()