grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grubenv file format


From: Colin Watson
Subject: Re: grubenv file format
Date: Wed, 24 Nov 2010 10:14:14 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Nov 24, 2010 at 10:44:31AM +0530, Gnanasekar Loganathan wrote:
>    What is the grubenv format?

Currently, it is a 1024-byte file beginning with "# GRUB Environment
Block\n".  Entries are written as "NAME=VALUE\n".  The file is
fixed-size, and free space up to the end of the file is filled with '#'
characters.

However, the format is not documented, and so if you write any code
outside GRUB to edit these files it is subject to breaking with future
versions of GRUB.  Use the grub-editenv utility instead.

>    I'm try to saving an environment variable in file, i'm getting "invalid
>    environment variable" or "environment block too small".
> 
>    grubenv file contains:
> 
>    # GRUB Environment block
>    ############################# --> continues.....

If that's exactly as written, then the signature is incorrect ("block"
instead of "Block").

-- 
Colin Watson                                       address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]