* Grub2 LUA API?
@ 2009-08-22 18:57 adrian15
2009-08-22 19:31 ` Bean
0 siblings, 1 reply; 3+ messages in thread
From: adrian15 @ 2009-08-22 18:57 UTC (permalink / raw)
To: The development of GRUB 2
Hi,
I have been playing a bit with osdetect.lua file. I have seen many
calls to grub.addmenu, grub.file_exist and so on.
I am now interested in making a table where to store all the uuid
associated to each one of the kernel that I find (I mean kernel's
filesystem's uuid).
As long as I suppose there is no documentation written about it I would
like to know where should I look into the grub2 source code in order to
know which grub.WHATEVER calls I can make, what are their
arguments/options , their outputs and so on.
So where should I look into in the source code?
Thank you very much!
adrian15
--
Support free software. Donate to Super Grub Disk. Apoya el software
libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/index.php?pid=10
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Grub2 LUA API?
2009-08-22 18:57 Grub2 LUA API? adrian15
@ 2009-08-22 19:31 ` Bean
2009-08-23 15:25 ` adrian15
0 siblings, 1 reply; 3+ messages in thread
From: Bean @ 2009-08-22 19:31 UTC (permalink / raw)
To: The development of GRUB 2
Hi,
You can use grub.enum_device, which pass the uuid to the callback
function, then you can store the device->uuid mapping in a table.
If you're looking for source code, check out script/lua/grub_lib.c
On Sun, Aug 23, 2009 at 2:57 AM, adrian15<adrian15sgd@gmail.com> wrote:
> Hi,
>
> I have been playing a bit with osdetect.lua file. I have seen many
> calls to grub.addmenu, grub.file_exist and so on.
>
> I am now interested in making a table where to store all the uuid
> associated to each one of the kernel that I find (I mean kernel's
> filesystem's uuid).
>
> As long as I suppose there is no documentation written about it I
> would like to know where should I look into the grub2 source code in order
> to know which grub.WHATEVER calls I can make, what are their
> arguments/options , their outputs and so on.
>
> So where should I look into in the source code?
>
> Thank you very much!
>
> adrian15
> --
> Support free software. Donate to Super Grub Disk. Apoya el software libre.
> Dona a Super Grub Disk. http://www.supergrubdisk.org/index.php?pid=10
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Bean
gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Grub2 LUA API?
2009-08-22 19:31 ` Bean
@ 2009-08-23 15:25 ` adrian15
0 siblings, 0 replies; 3+ messages in thread
From: adrian15 @ 2009-08-23 15:25 UTC (permalink / raw)
To: The development of GRUB 2
Bean escribió:
> Hi,
>
> You can use grub.enum_device, which pass the uuid to the callback
> function, then you can store the device->uuid mapping in a table.
Thank you. I will check your advice.
>
> If you're looking for source code, check out script/lua/grub_lib.c
I would have prefered documentation but source code is ok.
I will, of course, report back with more improvements/doubts on this
subject.
Thank you again.
adrian15
--
Support free software. Donate to Super Grub Disk. Apoya el software
libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/index.php?pid=10
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-23 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22 18:57 Grub2 LUA API? adrian15
2009-08-22 19:31 ` Bean
2009-08-23 15:25 ` adrian15
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.