[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grub-devel
Subject:    Re: How to use grub2-extra-lua module
From:       Vladimir ' <phcoder () gmail ! 
Date:       2014-05-18 17:39:19
Message-ID: 5378F047.3030402 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On 15.05.2014 15:45, å¼ é©° wrote:
> I googled for grub2-lua, but found very few information on it. I can't
> find an official website for grub2-lua (i.e official stable source code
> tarball download link), except for a git/bzr clone link.
> 
> Moreover, I can't find any documentation about grub lua. So I don't know
> how to use it.
> 
> I managed to compile grub2 along with lua module, then I boot into grub
> and type "help lua" to try to get some help info. But it only says that
> I can use command "lua script_file.lua" to execute the lua script. So I
> just want to learn the details on how to use lua module. For example,
> how to execute lua commands in grub.cfg file, how to return the lua
> execution result to the grub.cfg file, and what APIs does grub provide
> to the lua module.
> 
> The reason why I want to use lua module is that I have the need of file
> system operations in grub (i.e. mv, cp, cd, pwd, mkdir, rm, nano
> commands). grub2 itself doesn't provide this functionality. Some posts
> said grub-extra-lua module may provide this feature.
> 
GRUB never modifes files except in some very careful ways (env block).
You ask for means rather than end goal. What is your end goal?
> So I just want to know how to use grub lua module to operate on files
> and directories.
> 
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



["signature.asc" (application/pgp-signature)]

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic