From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Wm541-0007nu-9h for mharc-grub-devel@gnu.org; Sun, 18 May 2014 13:39:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm53u-0007lG-G4 for grub-devel@gnu.org; Sun, 18 May 2014 13:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wm53p-0004yv-21 for grub-devel@gnu.org; Sun, 18 May 2014 13:39:50 -0400 Received: from mail-ee0-x236.google.com ([2a00:1450:4013:c00::236]:57176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wm53o-0004yq-RQ for grub-devel@gnu.org; Sun, 18 May 2014 13:39:44 -0400 Received: by mail-ee0-f54.google.com with SMTP id b57so2918491eek.27 for ; Sun, 18 May 2014 10:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=FMNRBO2fy9QmRGVmSJxF63aX34Bl6WJeSZMPcERlFWY=; b=Ug24VK+QxEdKTRCM485BRoE+HKMTAJtokIL8OmftXK/mfyzTaU3lUPvTdYnUqIS4q6 FVqaIQAbxcPcAL8xIJF4kPasC17LrKnYKW3Bkkvqz0xB569wyYzO4HQZAvfNOhLicKiR Cuikb5z3CpzVlkNPQKLxcoQUUSbBK0MAE1CzYtC40oyaMzQ4H6cOcD0zSfoz+fGihy/B JO3MOJzNg0OQoPjwdPqhzphbow/FBDjZ5ivileUy0I4hiwYlMSgTk6ZrC6qDZN4DYYWg /8ak+Wve5kexw2uJirhxqVKSIH2VtG1/LNhVC57E1lHP5wwTF33VkUbMq8+Cc0+W2cMa to3g== X-Received: by 10.14.203.71 with SMTP id e47mr40228872eeo.50.1400434783797; Sun, 18 May 2014 10:39:43 -0700 (PDT) Received: from [192.168.42.123] (151-236.197-178.cust.bluewin.ch. [178.197.236.151]) by mx.google.com with ESMTPSA id o7sm35916399eew.25.2014.05.18.10.39.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 18 May 2014 10:39:42 -0700 (PDT) Message-ID: <5378F047.3030402@gmail.com> Date: Sun, 18 May 2014 19:39:19 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: How to use grub2-extra-lua module References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="O7FxPeWWULHp1VQ2DNuil614LWb7QEVDc" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::236 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2014 17:39:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --O7FxPeWWULHp1VQ2DNuil614LWb7QEVDc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15.05.2014 15:45, =E5=BC=A0=E9=A9=B0 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. >=20 > Moreover, I can't find any documentation about grub lua. So I don't kno= w > how to use it. >=20 > 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. >=20 > 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. >=20 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. >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --O7FxPeWWULHp1VQ2DNuil614LWb7QEVDc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlN48FUACgkQmBXlbbo5nOsFBwD/WT3V0OUSoExqS+KBgqT/pOvr V4L5C/yrcnY+8Tem9/8BAJydKB+BVq0gWjidqjKvcD0U6YxO0U9Wh0Jpl4p2B52A =3rcE -----END PGP SIGNATURE----- --O7FxPeWWULHp1VQ2DNuil614LWb7QEVDc--