From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: How to use grub2-extra-lua module
Date: Sun, 18 May 2014 19:39:19 +0200 [thread overview]
Message-ID: <5378F047.3030402@gmail.com> (raw)
In-Reply-To: <CAD=SU=dGqE2vqKDPnDW0+16ytZDGbtCpWo2ZBDqTRZgx2PkskQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1495 bytes --]
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
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 274 bytes --]
prev parent reply other threads:[~2014-05-18 17:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 13:45 How to use grub2-extra-lua module 张驰
2014-05-15 22:53 ` Geoffrey Thomas
2014-05-18 17:39 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5378F047.3030402@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).