grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* increasing grubenv file size
@ 2010-12-01  5:15 Gnanasekar Loganathan
  2010-12-01 10:24 ` Colin Watson
  0 siblings, 1 reply; 5+ messages in thread
From: Gnanasekar Loganathan @ 2010-12-01  5:15 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi All,

Is that possible to increase the size of grubenv file?
if so, please share the steps/procedure to increase the size of the
grubenv file.

Thanks,
Gnana


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: increasing grubenv file size
  2010-12-01  5:15 increasing grubenv file size Gnanasekar Loganathan
@ 2010-12-01 10:24 ` Colin Watson
  2010-12-02  4:57   ` Gnanasekar Loganathan
  0 siblings, 1 reply; 5+ messages in thread
From: Colin Watson @ 2010-12-01 10:24 UTC (permalink / raw)
  To: The development of GNU GRUB

On Wed, Dec 01, 2010 at 10:45:15AM +0530, Gnanasekar Loganathan wrote:
> Is that possible to increase the size of grubenv file?
> if so, please share the steps/procedure to increase the size of the
> grubenv file.

It's currently fixed in code, although I think only the grub-editenv
utility actually cares.  Could you share what you're trying to do with
the environment block for which the default size of 1024 is inadequate?

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: increasing grubenv file size
  2010-12-01 10:24 ` Colin Watson
@ 2010-12-02  4:57   ` Gnanasekar Loganathan
  2010-12-02  6:26     ` Jordan Uggla
  0 siblings, 1 reply; 5+ messages in thread
From: Gnanasekar Loganathan @ 2010-12-02  4:57 UTC (permalink / raw)
  To: The development of GNU GRUB

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

like wise we adding more environment variables in future.

If the space is not enough for storing more variables we have to
increase the size. If unable to increase the size we have to find
alternate way to store these evnironment variables.

Thanks,
Gnana




On Wed, Dec 1, 2010 at 3:54 PM, Colin Watson <cjwatson@ubuntu.com> wrote:
> On Wed, Dec 01, 2010 at 10:45:15AM +0530, Gnanasekar Loganathan wrote:
>> Is that possible to increase the size of grubenv file?
>> if so, please share the steps/procedure to increase the size of the
>> grubenv file.
>
> It's currently fixed in code, although I think only the grub-editenv
> utility actually cares.  Could you share what you're trying to do with
> the environment block for which the default size of 1024 is inadequate?
>
> --
> Colin Watson                                       [cjwatson@ubuntu.com]
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: increasing grubenv file size
  2010-12-02  4:57   ` Gnanasekar Loganathan
@ 2010-12-02  6:26     ` Jordan Uggla
  2010-12-02  7:35       ` Gnanasekar Loganathan
  0 siblings, 1 reply; 5+ messages in thread
From: Jordan Uggla @ 2010-12-02  6:26 UTC (permalink / raw)
  To: The development of GNU GRUB

On Wed, Dec 1, 2010 at 8:57 PM, Gnanasekar Loganathan
<l.gnanasekar@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)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: increasing grubenv file size
  2010-12-02  6:26     ` Jordan Uggla
@ 2010-12-02  7:35       ` Gnanasekar Loganathan
  0 siblings, 0 replies; 5+ messages in thread
From: Gnanasekar Loganathan @ 2010-12-02  7:35 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi Jordan,

Hope so all these environment variables being set from the grub itself
using "set".
Anyhow saving in separate file option is sounds good.
Thanks Jordan.

Thanks,
Gnana


On Thu, Dec 2, 2010 at 11:56 AM, Jordan Uggla <jordan.uggla@gmail.com> wrote:
> On Wed, Dec 1, 2010 at 8:57 PM, Gnanasekar Loganathan
> <l.gnanasekar@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
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-02  7:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01  5:15 increasing grubenv file size Gnanasekar Loganathan
2010-12-01 10:24 ` Colin Watson
2010-12-02  4:57   ` Gnanasekar Loganathan
2010-12-02  6:26     ` Jordan Uggla
2010-12-02  7:35       ` Gnanasekar Loganathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).