mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-31 21:06:18 +01: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:
1 parent
a2fd7ae879
commit
0eac99f76e
1 file changed
+10
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user