lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I found the following in /boot/grub/grub.cfg on Ubuntu Natty (the
current development version):

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
   set matches_file=${prefix}/gfxblacklist.txt
   set class_match=3
   if lua ${prefix}/hwmatch.lua; then
     if [ ${match} = 0 ]; then
       set linux_gfx_mode=keep

So it would appear to me that at least Ubuntu now uses Lua while
preparing its boot sequence (hwmatch.lua is contained in the grub-pc
package).

Bit of an endorsement.

GRUB version 2 can indeed be scripted with Lua. If anyone's interested, http://grub.enbug.org/LUASupport provides more information.

 - Peter Odding