[syslinux] lua not working on syslinux-6.03-pre18

Alex Bligh alex at alex.org.uk
Mon Jun 30 08:30:31 PDT 2014


I've upgraded from syslinux-4.05 to syslinux-6.03-pre18 (pre11 was the same)
and am having some issues getting lua.c32 to work. I'm using lpxelinux.0
if that's relevant.

My boot file and the contents of default.lua are below. As you can see they
are fantastically simple. Essentially I'm just using lua to put the results
of ipappend in the right place on the command line.

The symptom is that the two io.write()s work as expected, then I see:

default.lua:6: attempt to index global 'syslinux' (a nil value)

This would suggest that somehow the syslinux global is not defined,
so run_kernel_image is not working. Is there some special magic I need
to import this? This was working in 4.05 (albeit I have necessarily
had to change some other stuff).

-- 
Alex Bligh

boot file:

prompt 1
default xen4
timeout 100
serial 0 115200
display boot.msg

label xen4
kernel lua.c32
append default.lua
ipappend 3

default.lua:


io.write("Lua ",_VERSION," chaining Xen4 through mboot.c32\n")

bootstr = "images/xvp/xen-4.3-mini_4.3.0-20130729173244.gz noreboot dom0_mem=3072M,max:3072M,min:3072M guest_loglvl=none com1=115200,8n1 vga=text-80x60 console=com1 --- images/xvp/vmlinuz-3.8.0-32-generic console=hvc0 console=tty0 apparmor=0 vga=773 " .. arg[1] .. " " .. arg[2] .. " --- images/xvp/extility-node-4.0-2.img"

io.write("Running " .. bootstr .. "\n")
syslinux.run_kernel_image("mboot.c32", bootstr, 0, 0)





More information about the Syslinux mailing list