The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0eac99f76ec31270f902cc2a0ff5ae4b5b606a65

commit 0eac99f76ec31270f902cc2a0ff5ae4b5b606a65
Author:     Warner Losh <[email protected]>
AuthorDate: 2024-07-29 22:57:37 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2024-07-29 22:57:37 +0000

    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
---
 stand/lua/menu.lua | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
index 4a948acf8241..66d7fe673023 100644
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -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()

Reply via email to