[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Save/Load environment variable support
From: |
Robert Millan |
Subject: |
Re: [PATCH] Save/Load environment variable support |
Date: |
Sat, 14 Jun 2008 21:20:11 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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
<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)