From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Ztqlx-0007D7-4N for mharc-grub-devel@gnu.org; Wed, 04 Nov 2015 00:38:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztqlt-0007Bl-RQ for grub-devel@gnu.org; Wed, 04 Nov 2015 00:38:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ztqlo-0004l3-RM for grub-devel@gnu.org; Wed, 04 Nov 2015 00:38:09 -0500 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:34066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztqlo-0004ky-Js for grub-devel@gnu.org; Wed, 04 Nov 2015 00:38:04 -0500 Received: by lbbwb3 with SMTP id wb3so7814051lbb.1 for ; Tue, 03 Nov 2015 21:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=T+fFzuKCt8SWk8SjcWaQ4m5CNjbGYCUmtGSgbLitem4=; b=sr95sCNz3LO6mGYj4DFFvufDLqPWW7cW1OWppG5/dmSDbQaYhm4zcBKXdagd5wi4ZA +kZOwSV8HsHVUprfb9j+ueQVn+FcrjycCWUKl197IpaTD1ouDH52abJ/eDXIIs8oGPXS qV74Ge5fx+0WZmL5Nyi7c082B9FxhRQIVDy2L1XS3CMz8vU6VmnA2nUOtQD50YZ9lvYN 1HyGY0XqznltZbdTubYvbjdoVW6P3wyU0tP6mnsEHgPgPzfQNf8DVlX6fsr5ebzEyL8J 1bgFe5NtOcnHppZ1GsRSj+HDiQVAYwmLlbXpz0zb8GeN+eCQTQ8XzmTpFYaUJfjegRqs cT+g== X-Received: by 10.112.180.230 with SMTP id dr6mr14762609lbc.72.1446615483515; Tue, 03 Nov 2015 21:38:03 -0800 (PST) Received: from [192.168.1.41] (ppp91-76-25-247.pppoe.mtu-net.ru. [91.76.25.247]) by smtp.gmail.com with ESMTPSA id d18sm5415370lfe.44.2015.11.03.21.38.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 21:38:02 -0800 (PST) Subject: Re: Grub get and set efi variables To: The development of GNU GRUB References: From: Andrei Borzenkov Message-ID: <563999B9.7020108@gmail.com> Date: Wed, 4 Nov 2015 08:38:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 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: Wed, 04 Nov 2015 05:38:11 -0000 04.11.2015 02:05, Mat Troi пишет: > Hi SevenBits, > > Thanks for letting me know. Out of curiosity, any particular reason why > this patch did not get merged? It looks to be a useful feature. > First, this patch was reverse patch :) I am not convinced making it easy to set EFI variable from within GRUB is good thing, because there are known reports about systems rendered unbootable by writing too much into EFI flash. What is your use case that absolutely requires setting EFI variables? How are you going to implement it on other platforms? Reading does not harm and may be useful, but then it should provide generic interface to access arbitrary vendor namespace, not only EFI global variables, and handle arbitrary binary data, even if initial implementation handles only subset of them. Once someone starts to use it changing it will be much more difficult. May be it should take hints how to interpret variable values, or have format option akin to printf. > Thanks, > Mat > > On Tue, Nov 3, 2015 at 12:12 PM, SevenBits wrote: > >> On Tuesday, November 3, 2015, Mat Troi wrote: >> >>> Hi, >>> >>> Searching through google, I see there was an email thread to add a patch >>> for getting and setting efi variable in GRUB2. >>> https://lists.gnu.org/archive/html/grub-devel/2013-11/msg00328.html >>> >>> However, looking at the tree, it doesn't look like this patch was added, >>> am I missing something? Does anyone know if we have command to get/set efi >>> variables in GRUB2? >>> >>> >>> http://git.savannah.gnu.org/gitweb/?p=grub.git;a=tree;f=grub-core/commands/efi;h=005fd2efc9a2eede2a1eb1cab8081c360219107b;hb=HEAD >>> >>> >> I'm the author of that patch. No, it was never merged into the tree. As >> far as I know, there is no equivalent functionality; GRUB does not support >> this feature. >> >> >>> Thanks, >>> Mat >>> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >