From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K7bIy-0008WU-71 for mharc-grub-devel@gnu.org; Sat, 14 Jun 2008 15:20:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7bIw-0008WP-9r for grub-devel@gnu.org; Sat, 14 Jun 2008 15:20:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7bIt-0008WD-Ux for grub-devel@gnu.org; Sat, 14 Jun 2008 15:20:49 -0400 Received: from [199.232.76.173] (port=58291 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7bIt-0008WA-Ke for grub-devel@gnu.org; Sat, 14 Jun 2008 15:20:47 -0400 Received: from aybabtu.com ([69.60.117.155]:32857) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7bIt-0007Yx-Ig for grub-devel@gnu.org; Sat, 14 Jun 2008 15:20:47 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K7bGr-0001KU-AV for grub-devel@gnu.org; Sat, 14 Jun 2008 21:18:43 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1K7bIJ-0000Go-7O for grub-devel@gnu.org; Sat, 14 Jun 2008 21:20:11 +0200 Date: Sat, 14 Jun 2008 21:20:11 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080614192011.GA840@thorin> References: <20080614184757.GH5636@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Save/Load environment variable support 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, 14 Jun 2008 19:20:50 -0000 On Sun, Jun 15, 2008 at 03:03:43AM +0800, Bean wrote: > > Hi, > > Yes, this is a standalone command, it's used to support persistent > variable. For example, we can archive the result of savedefault using > the following command: > > load_env > > menuentry aa { > save_env default > } > > load_env loads the environment variable from $prefix/grubenv, and > save_env save selected variable to it. grubenv contain a environment > block, so that we can manage it using grub-editenv, just like the > environment block in the kernel. Sounds interesting.. does the 8 kiB size assure us that we won't have any trouble with filesystems when writing to it? Also, which parts of this would be reused by findroot? -- Robert Millan I know my rights; I want my phone call! What good is a phone call… if you are unable to speak? (as seen on /.)