On Wed, Dec 1, 2010 at 8:57 PM, Gnanasekar Loganathan
<l.gnanase...@gmail.com> wrote:
> Hi Colin,
>
> We are storing environment variables like below:
>
> macaddr=ab:cd:ef:12:34:56
> bootfile=image.gnana
> ipaddr=172.30.16.203
> netmask=255.255.0.0
> serverip=172.30.16.90
> gatewayip=172.16.1.1
> ftpuser=username
> ftppasswd=password
> bootcmd=flash(0,0):XXXX-OS-8-3-9-23.bin;default_boot;boot

Are these environment variables being *set* from within grub itself,
or by an administrator booted into an OS? For persistent storage of
environment variables you can simply set the variables with the
grub.cfg, or in a separate cfg file which is sourced by the primary
grub.cfg (like /boot/grub/custom.cfg). Using a normal text file you
can include as many variables as you want, expanding as needed.

That's not to say that it will never be useful to have a larger
grubenv, but it doesn't sound like it's needed in your case.

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to