From 0eac99f76ec31270f902cc2a0ff5ae4b5b606a65 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 29 Jul 2024 16:57:37 -0600 Subject: [PATCH] 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()