From nobody Thu Aug 01 14:50:32 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WZX2K6VChz5St4f; Thu, 01 Aug 2024 14:50:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZX2K196qz4JbC; Thu, 1 Aug 2024 14:50:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722523833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fyGG6cM93wHWFxw6c5lo6pB2QNNxbO7Y5BbRi4ASQyk=; b=pQpVUTV1uOI/oJx3slCs702jdVXqmVW585vpMSLXlVIogLp6niwkrxeV/g0gwrTU6Cotg1 bvfN0cBeDeRbpRne2M2p+8Z5ThfBaI6WbmBNx+ibz7aj4+L0sTTvbXABsoETQNR6G1DTTW JMTg9c4ajVOOgpAU0vp8O6vKE8dqUzRVMJUSNGTXyRzfTGrPF+umWy3qmlTcc73zZEG5h3 Q2XpyTW7ncGqjovohKh2oJ6g1rxUCtdMQd6t4UJEzvMSBTp9Xxq8woXjCIdS/7jwgrKXV3 H6eTXup/Z1r3uR2/Wn7e+hq508fViJ5VGhmOJP9rHKWS2RtweqoW3o7GKsX9fQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722523833; a=rsa-sha256; cv=none; b=ahK9qksX9RlWK2pNSOomCdfrWeJspM8WcLSD1KKVMO5oG6suEMzgWfrdaEXrWOUtm9TbP+ BPNgqcKVUCnf8qjj4YChmg9AHdsuUspJDpFulKYILz/Dj6IN1B8rH5sAVByP0owhtl+Pv5 Ti0o5/TswzPbLJS0c3LfGnwwihyS9hCAwh8cZGMPqJuiwkuMMY2i912cWC8O6AU/JmEsSR jMXIULrF9oMru2fLGaW/0dMBgfNrSYTCppnBIqDOjUGkhCmeglmKlFuFcMJomYtKBbVWtq tvTIP9FglYEEZcW38wnCIkEPBZ7j6F9Ek1pMnPQ8JhSBbGPzqrgVfFlfb1EE4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722523833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fyGG6cM93wHWFxw6c5lo6pB2QNNxbO7Y5BbRi4ASQyk=; b=k+MasTMUh0L6U9D0xkihr7ni7XenetXqv3SUrp/jpc9UGFSM5rQeKfCtnDistDP976rHUk AOmXBufavJWqfYy5+uS6LH25ON7SWrm10HT9/8rWqXMRE9rYPLieMXRAGsZ1dp11OI9G7B qAatun0Z4XnlRJh1GSClEgDLzwJVjjDgA3XEy+IrTzUoTYiLLoOd1p6VPLnD806/3bIThW Qs8I3hcBTcWnW4VJcueJnXXhYGOJ1dqiA3ih/8QDWozrceje41dBcoUQhkf6AqRQIKie6u XW+tU+/ntd98o4uiD4OLxB6NsTSabR0lP7SAV19TMwtiCE0Jy7lqVApUFGV93Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WZX2K0kxBzpYg; Thu, 1 Aug 2024 14:50:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471EoWs3049729; Thu, 1 Aug 2024 14:50:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471EoWaA049726; Thu, 1 Aug 2024 14:50:32 GMT (envelope-from git) Date: Thu, 1 Aug 2024 14:50:32 GMT Message-Id: <202408011450.471EoWaA049726@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 59bfc69490ea - stable/14 - stand: Add "Loader needs updating" to the first menu item" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 59bfc69490ea033d3c5eeb10c8ddd4aed4fbc4a9 Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=59bfc69490ea033d3c5eeb10c8ddd4aed4fbc4a9 commit 59bfc69490ea033d3c5eeb10c8ddd4aed4fbc4a9 Author: Warner Losh AuthorDate: 2024-07-29 22:57:37 +0000 Commit: Warner Losh CommitDate: 2024-08-01 14:49:54 +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 4a948acf8241..0587e5ae6586 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()