From nobody Tue Jan 24 22:09:46 2023 X-Original-To: dev-commits-src-branches@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 4P1h3G46Qlz3bdjb; Tue, 24 Jan 2023 22:09:46 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P1h3G340fz4Gx2; Tue, 24 Jan 2023 22:09:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598186; 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=aGos1H2XX7AXafKKHPQspPmdPmC1qz6a25yaqNCe3uc=; b=Rhvu4fImYpmGC/N7HEDiW0x8U1IOugA8ET5Eg264u9ZVErptcSA8vbPgwLZI4WZLUKHMoa SJDC6UudFOUMiOLZcJlNrhdvCf101n3TPITVP8J+Fffp1mWM8kS3y0P6qpnYMybMJmnJBc dzv3Xk7qJfwc/mbuoI59nIW7vR8o1M3sqLbHNezRstwWQ8iEbcX5c6TvEyVUTYIXdUroS+ x7YOYDkbcYzw6R/lQlfClUS2NLfULWWzvy2BI2Ju2bwEbpebs+67fXwGsENAKjRAFNPc4P tK/ISC7UKNsmQa/pzTZ5JlJvessLqAi1gH+NeaQRpFM29GwY/tV/t57KJnm0/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598186; 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=aGos1H2XX7AXafKKHPQspPmdPmC1qz6a25yaqNCe3uc=; b=l9LJAWjsqvYJ3FcNTX1falFcpi4DJ5/CwIbc3JArlXCQ/fpRVjkh9CosGDKoAAzXx344Jv JM6MHOEON+9mLj5HClMwW+wAB29rtYp4+KG+Px3gsbQKlHRYLk0yyVeKBv3twu9j5L+/RP /brebDhNHNdXZRoM+ZtXeTl1ntCtbW/4en6qOdKNjTwG0h+M5tfxA/rWJl5WVArra9B9pv F3xZiwAcfn6W3m6e8AT/g8xlqmFVBwSbmQNQrXIZplMJ9VE/xqDD92ye1gqzDd26hgmR1S KrQfPIqa4a+haQRhIgbG1O0lLUzYYs6gZNyWo8mr1iJm03MfA6enuVmA6hWGpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598186; a=rsa-sha256; cv=none; b=Wp8PfyrFICiLNVHH8YyneJWVf3Lt6zZAzbtkxh3asqzIFZod1yyH9bmNvlo3M6/qy1QdBb NQlCBB74fANkrwx/DBq6JOVyVbw4vQUVfmlDgsBU6XeX4wk76iRBUuMKjDfWA99FZQLBxz ghaFvX8MyKQBiZ6LW/jzfmEIqFj9eGFGfPRmqBkbAeBhIQraEAgKaKlLo+raFf+eCYz5Wx Znujl1170uH78JjIpBBEIWGCecpxucFL1GbB0bs4TgVwnzx2GJR2EGc6Hm61iC4wWJhJT9 YDS08SRnDzrZR8uU16KeS1bG9GB1UGeZqnf3Y9shgqrTu3KHrQ2kDPKDiNew1A== 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 4P1h3G22NgzPmY; Tue, 24 Jan 2023 22:09:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30OM9kLK070743; Tue, 24 Jan 2023 22:09:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OM9kBi070742; Tue, 24 Jan 2023 22:09:46 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:09:46 GMT Message-Id: <202301242209.30OM9kBi070742@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: 2c040e347370 - stable/13 - luaboot: visible must be a function List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: 2c040e347370a343b48776d86d80413919c44219 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2c040e347370a343b48776d86d80413919c44219 commit 2c040e347370a343b48776d86d80413919c44219 Author: Warner Losh AuthorDate: 2021-04-01 04:34:50 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:16 +0000 luaboot: visible must be a function Visible needs to be a function. Looks like I tested the wrong thing. (cherry picked from commit 556e66b7b0763d36ddf5af98d06a1a13090bb729) --- stand/lua/menu.lua | 4 +++- stand/lua/menu.lua.8 | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index 0db52d7c3920..f1a4f07a8d73 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -403,7 +403,9 @@ menu.welcome = { }, vendor = { entry_type = core.MENU_ENTRY, - visible = false, + visible = function() + return false + end }, }, } diff --git a/stand/lua/menu.lua.8 b/stand/lua/menu.lua.8 index 82863791903d..38655414258f 100644 --- a/stand/lua/menu.lua.8 +++ b/stand/lua/menu.lua.8 @@ -240,6 +240,9 @@ welcome_entries.vendor = { name = color.highlight("V") .. "endor Options", submenu = vendor_options, alias = {"v", "V"}, + visible = function() + return true + end, } .Ed In the above example,