[syslinux] Upgrade to Lua 5.2.2, add filesystem module and get_key binding

Ferenc Wagner wferi at niif.hu
Wed Oct 16 09:51:45 PDT 2013


Ferenc Wagner <wferi at niif.hu> writes:

> Hmm, yes.  The series is available at https://github.com/wferi/syslinux
> as well (lua52 branch, based on upstream firmware branch).
> Cover letter: https://gist.github.com/wferi/6989458#file-lua52_cover-txt

To get an idea what it's all about, have a look at the attached menu.lua
file.  If invoked by a config file consisting of:

DEFAULT lua.c32 menu.lua

it displays a menu based on the vmlinuz (and initrd.img) files found in
the current (root) directory:

SYSLINUX 6.02 6.02-21-gea6becb Copyright (C) 1994-2013 H. Peter Anvin et al

=== Boot menu ===
1	vmlinuz-3.10-3-amd64
2	vmlinuz-3.9-1-amd64
3	vmlinuz-3.2.0-4-amd64

Booting option 1 in 5 s with append:
root=/dev/mapper/cedar-root ro console=ttyS0
Press 1-3 to select kernel, ESC to exit, any other key to cancel timeout

It would be fairly easy to bind and use libmenu.c32 instead, but I
usually prefer to not trash my biggish terminal window containing
possibly valuable serial console output from the shutdown phase.

Just hoping to motivate review/merging... :)
-- 
Thanks,
Feri.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: menu.lua
Type: text/x-lua
Size: 2016 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20131016/3d31c359/attachment.bin>


More information about the Syslinux mailing list