Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MewJJ-000283-QC for mharc-grub-devel@gnu.org; Sat, 22 Aug 2009 15:31:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MewJI-00026q-1U for grub-devel@gnu.org; Sat, 22 Aug 2009 15:31:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MewJC-000227-Ew for grub-devel@gnu.org; Sat, 22 Aug 2009 15:31:30 -0400 Received: from [199.232.76.173] (port=38568 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MewJC-00021k-9H for grub-devel@gnu.org; Sat, 22 Aug 2009 15:31:26 -0400 Received: from rv-out-0708.google.com ([209.85.198.242]:9865) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MewJB-0005MV-Qb for grub-devel@gnu.org; Sat, 22 Aug 2009 15:31:26 -0400 Received: by rv-out-0708.google.com with SMTP id c5so544345rvf.2 for ; Sat, 22 Aug 2009 12:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=a7c/I7UIORdvKYkvifhbyHMQIWt9u9FCoQ6NsMMCHuk=; b=rsDejGgyQhZOw/iJJVGNNakdj4s8KCccqSyaj3k2+KCnfSyMTGTf+4V5ysZ0Wql5lT 0sq9r9XtN63KLVLg1uABCHzMasmf9MfjElVUgvCVhyH+6Q5G4T8MwhvYXwNiRA/s4LAc MztVl2jr0n9qSvhXGqRJvpcnvpZxm5um9W7ME= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jiAILQMVBiDQtOYNwSK3eNeM8Js9cfVpssNU8eRBPzGCO8rQho9dSktPx0rhVxMyHo IykQ1LAz1FMvEVaOCxZYI/00CYsPt+/hO291VZxR7j3vrM36VVO7vrBHcOc4p2ibiZ+c cS97q2vs3MqR/63mdum8D6P+NITJ8MGOlU7Hk= MIME-Version: 1.0 Received: by 10.140.169.12 with SMTP id r12mr1434712rve.57.1250969484118; Sat, 22 Aug 2009 12:31:24 -0700 (PDT) In-Reply-To: <4A903FB3.5070302@gmail.com> References: <4A903FB3.5070302@gmail.com> Date: Sun, 23 Aug 2009 03:31:24 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Grub2 LUA API? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2009 19:31:32 -0000 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 wrote: > Hi, > > =A0 =A0 =A0 =A0I have been playing a bit with osdetect.lua file. I have s= een many > calls to grub.addmenu, grub.file_exist and so on. > > =A0 =A0 =A0 =A0I am now interested in making a table where to store all t= he uuid > associated to each one of the kernel that I find (I mean kernel's > filesystem's uuid). > > =A0 =A0 =A0 =A0As long as I suppose there is no documentation written abo= ut it I > would like to know where should I look into the grub2 source code in orde= r > to know which grub.WHATEVER calls I can make, what are their > arguments/options , their outputs and so on. > > =A0 =A0 =A0 =A0So where should I look into in the source code? > > =A0 =A0 =A0 =A0Thank 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=3D10 > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/