lua loader failes
- Reply: Warner Losh : "Re: lua loader failes"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jul 2024 00:44:00 UTC
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