The branch stable/13 has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=934691dbf34daaf193451ad9bae978803f813de8

commit 934691dbf34daaf193451ad9bae978803f813de8
Author:     Warner Losh <[email protected]>
AuthorDate: 2024-07-29 22:57:37 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2024-08-01 14:57:14 +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.
    
    Use the correct loader code that adds an inactive highlighted menu item
    indicating that an update is needed.
    
    Sponsored by:           Netflix
    Reviewed by:            jhb
    Differential Revision:  https://reviews.freebsd.org/D45890
    
    (cherry picked from commit 0eac99f76ec31270f902cc2a0ff5ae4b5b606a65)
    (cherry picked from commit 7cb65be96d47cbe0b740266bc633d272fc4c5e6b)
---
 stand/lua/menu.lua | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
index 7da03ad9e673..d74c7cd68791 100644
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -263,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 = {
@@ -411,6 +415,15 @@ menu.welcome = {
                        end,
                        alias = {"l", "L"},
                },
+               loader_needs_upgrade = {
+                       entry_type = core.MENU_SEPARATOR,
+                       name = function()
+                               return color.highlight("Loader needs to be 
updated")
+                       end,
+                       visible = function()
+                               return core.loaderTooOld()
+                       end
+               },
                vendor = {
                        entry_type = core.MENU_ENTRY,
                        visible = function()

Reply via email to