mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
stand: Use correct loader needs to be updated code
Use the correct loader code that adds an inactive highlighted menu item
indicating that an update is needed.
My laptop is the only machine that I have a boot menu. I'd debugged the
menu part there, but had all the other changes, including my original
menu code, on my server and hadn't copied it back before pushing.
Fixes: 0eac99f76e
Sponsored by: Netflix
This commit is contained in:
parent
c4269e63ec
commit
7cb65be96d
@ -245,7 +245,6 @@ 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,
|
||||
@ -264,6 +263,10 @@ menu.welcome = {
|
||||
menu_entries.boot_envs,
|
||||
menu_entries.chainload,
|
||||
menu_entries.vendor,
|
||||
{
|
||||
entry_type = core.MENU_SEPARATOR,
|
||||
},
|
||||
menu_entries.loader_needs_upgrade,
|
||||
}
|
||||
end,
|
||||
all_entries = {
|
||||
@ -415,8 +418,8 @@ menu.welcome = {
|
||||
loader_needs_upgrade = {
|
||||
entry_type = core.MENU_SEPARATOR,
|
||||
name = function()
|
||||
return "Loader requires updating"
|
||||
end
|
||||
return color.highlight("Loader needs to be updated")
|
||||
end,
|
||||
visible = function()
|
||||
return core.loaderTooOld()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user