Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MIgj8-0004hm-U6 for mharc-grub-devel@gnu.org; Mon, 22 Jun 2009 06:26:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIgj6-0004gL-9t for grub-devel@gnu.org; Mon, 22 Jun 2009 06:26:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIgj0-0004dA-Va for grub-devel@gnu.org; Mon, 22 Jun 2009 06:26:11 -0400 Received: from [199.232.76.173] (port=33796 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIgj0-0004d5-LW for grub-devel@gnu.org; Mon, 22 Jun 2009 06:26:06 -0400 Received: from mail-pz0-f182.google.com ([209.85.222.182]:47971) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIgiz-000171-OE for grub-devel@gnu.org; Mon, 22 Jun 2009 06:26:05 -0400 Received: by pzk12 with SMTP id 12so1721872pzk.14 for ; Mon, 22 Jun 2009 03:26:02 -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=iVGtYaRahJ5vHWwOr6ihbYYEojOu1hpQ8xdCCyo0yz0=; b=IzPN3mTBfZ0NjTltMLnxj4kWrFl0cmG7Sf+I/WXnCpm8hwb1O6/S6Z9CtyuXtVGJDU iamAPPPLpQ3TdqMem2tCgwTKN6UA36151+MRFZe0py9CevGEXG7prtGXcuj93X9b2kZ9 6inRBOLkqyadQtt+/ltOPjWMDwKJMwnNaQ0LA= 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=JiloiAVlaeH9tXIx24b2K49JO5Xi4JFmpnSLcS4faSS7z66vOGcohpL1n160FHhvn6 fXqdOtonUr2PZn7b0IMkhp6myX3cA0wDyDD2OFwTUxroVkoJFp2K9jaJRRxWZQK/E+j+ VyqfOxlylsquQuDkyf440ZxeNcSvypWnvY3WQ= MIME-Version: 1.0 Received: by 10.143.35.4 with SMTP id n4mr2615929wfj.73.1245666362264; Mon, 22 Jun 2009 03:26:02 -0700 (PDT) In-Reply-To: <20090622094429.GB8969@thorin> References: <1245631353.9864.7.camel@mj> <20090622094429.GB8969@thorin> Date: Mon, 22 Jun 2009 18:26:02 +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: [PATCH] File access library for lua 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: Mon, 22 Jun 2009 10:26:13 -0000 On Mon, Jun 22, 2009 at 5:44 PM, Robert Millan wrote: > On Mon, Jun 22, 2009 at 11:38:35AM +0800, Bean wrote: >> > >> > I'm feeling uneasy about having a parser in GRUB that is not used by >> > default, but it's not related to the quality of the patch. >> >> Actually, this is about to change. > > I don't mind LUA being supported if it's useful for some users, but I'm > not satisfied with ditching GRUB scripting engine with something external= . > > We really should discuss it with Marco or Okuji before changing the > default parser to something else. Hi, No need to change the default parser, with the #! syntax, we can call the lua script from main grub.cfg, and the parser will switch back to sh on return, something like this: grub.cfg: source osdetect.lua ... osdetect.lua: #!lua ... > > -- > Robert Millan > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Bean