Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2024 09:44:00 +0900
From:      =?utf-8?B?5YaF6Jek56WQ5LiA6YOO?= <naito.yuichiro@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        imp@bsdimp.com
Subject:   lua loader failes
Message-ID:  <32DC8FB2-1384-4F15-8232-2606CCAD358E@gmail.com>

index | next in thread | raw e-mail

Hi, I updated my FreeBSD current machine to the following commit.

FreeBSD vega.yuisoft.com 15.0-CURRENT FreeBSD 15.0-CURRENT #29 main-n271492-0eac99f76ec3: Tue Jul 30 08:59:51 JST 2024     yuichiro@vega.yuisoft.com:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

The lua loader fails as follows.

ERROR: error loading module 'menu' from file '/boot/lua/menu.lua':          /boot/lua/menu.lua:420: '}' expected (to close '{' at line 415) near 'vi
sible’.

A comma is probably missing. The following patch works for me.

diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
index 66d7fe673023..7d295eeb65eb 100644
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -416,7 +416,7 @@ menu.welcome = {                          entry_type = core.MENU_SEPARATOR,
                        name = function()
                                return "Loader requires updating"
-                       end
+                       end,
                        visible = function()
                                return core.loaderTooOld()
                        end


—
Yuichiro NAITO
naito.yuichiro@gmail.com






help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32DC8FB2-1384-4F15-8232-2606CCAD358E>