From nobody Mon Jul 29 22:57:33 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 4WXtzf3DlGz5S8w2; Mon, 29 Jul 2024 22:57:34 +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 4WXtzd5Gd9z4392; Mon, 29 Jul 2024 22:57:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722293853; 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=zTCV2hD59G12DJH2jmvycHwCJ7C3HH31e5+mku90Iao=; b=VjV2slT8pQ7kZb1TqqREz1S2Ne8nNj14GNzW6ftllmCKhLjf6I2fboIiVxhCYcl1K+Gnp1 a3D1pnhMfEtMkfH6gLkOT3tAaOyK3WQLM6ft+QRPvpf1w/eN2yAIxqaIYDuVvJUZYCp49N 81o3Imw0/jQ7lXEMvEKSI67ptAiF4TWzrhu3vL5TRByhmJ8FPhmdjs2Uu8JExBIXWik4Sg UMuK54/xtaK31XZ2KRvnSR4cXs5JUwb9MmcpHfhyQ1NzuAZl8GTntf+5qYjF88vnetmUhy S5Z//WjcooCQquPjWrDbcXPpkjFtydsIR66K7D9UnQstI4pIboUnYrUnUGQVQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722293853; a=rsa-sha256; cv=none; b=j7DcH1Hg/oYKEcWnsOHND79WDlR5W33S74j/NzfvAvZVIWkJggqWgicQLop+WtNztJ31Ru ZCYsexp46BC4riEVCe2X3bU8tWroJhJHCbFwcPGo8OVJy/rBomBq1gpjJyN3VWXGWbiNlj v9lwj+4V/D1r07x1Qh5LcNe+zdrJEnPTXH2VGMA9ajVzeghkTwjtZcyQSU/puiy+R3y0cd f2wNyoDZxXjHoOpVlouByP3nthCX8EmyRM1h9bfadmeDKJmfgSmwYrjtrCC6jBWj34jWgi pxFu/qtQ4bJ7iEPaibbeUQiAwfSi7zp2yF5WimPdmmfDF7x1mzeBwTfxDqMXHw== 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=1722293853; 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=zTCV2hD59G12DJH2jmvycHwCJ7C3HH31e5+mku90Iao=; b=rujbb0dc3LUO52HYkG4VSZuOo6IeLJTHOvH7aIh/qJJQYX4GdMomDJZez0pyecLA6XxW4n ME2u1jG85uyIAxGAViQYp4/K4KgejJSVKYD/hXkjkJ4N1bhXAw/CLCacwLsyQ0lDoEF7P+ HvcTGTnMK5BATn6NBiAe1IjOaxsoHBdavjBt8uiQehIeRC4j1Wy6CDstm0IS4/7YltpUXN xUzP9nqF9TbJH7xrdG7/QodlUMNxnP85Oz70wOHoF+7xosI30pEgD/0EiDymQZmuFFEmxM BgDyk9CYwh9ppEbN1uuYoRsfm1bppj+4rPDcANevRvD+UWWa+EgkdDDgsyJ7Gg== 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 4WXtzd4spmzshS; Mon, 29 Jul 2024 22:57: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 46TMvXhB049757; Mon, 29 Jul 2024 22:57:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46TMvXXk049754; Mon, 29 Jul 2024 22:57:33 GMT (envelope-from git) Date: Mon, 29 Jul 2024 22:57:33 GMT Message-Id: <202407292257.46TMvXXk049754@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0eac99f76ec3 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 0eac99f76ec31270f902cc2a0ff5ae4b5b606a65 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0eac99f76ec31270f902cc2a0ff5ae4b5b606a65 commit 0eac99f76ec31270f902cc2a0ff5ae4b5b606a65 Author: Warner Losh AuthorDate: 2024-07-29 22:57:37 +0000 Commit: Warner Losh 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()