All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Save/Load environment variable support
Date: Sat, 14 Jun 2008 21:20:11 +0200	[thread overview]
Message-ID: <20080614192011.GA840@thorin> (raw)
In-Reply-To: <ca0f59980806141203g3c692e8bocfc3f9deefa85b5a@mail.gmail.com>

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 /.)



  reply	other threads:[~2008-06-14 19:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13  7:07 [PATCH] Save/Load environment variable support Bean
2008-06-14 18:47 ` Robert Millan
2008-06-14 19:03   ` Bean
2008-06-14 19:20     ` Robert Millan [this message]
2008-06-14 19:28       ` Bean
2008-06-14 19:30 ` Robert Millan
2008-06-14 19:44   ` Bean
2008-06-15 13:25     ` Robert Millan
2008-06-15 14:09       ` Bean
2008-06-30 13:06         ` Bean
2008-07-01 15:54           ` Robert Millan
2008-07-02  7:39             ` Bean
2008-07-03 18:04               ` Marco Gerards
2008-07-03 18:09                 ` Pavel Roskin
2008-07-03 20:11                   ` Bean
2008-07-03 22:52                     ` Robert Millan
2008-07-03 20:41                   ` Marco Gerards
2008-07-03 21:06                     ` Bean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080614192011.GA840@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.