All of lore.kernel.org
 help / color / mirror / Atom feed
* grub cvs ... configfile
@ 2006-04-02  5:58 Jeff Chua
  2006-04-02 11:30 ` Marco Gerards
  0 siblings, 1 reply; 14+ messages in thread
From: Jeff Chua @ 2006-04-02  5:58 UTC (permalink / raw)
  To: Grub Devel



I just downloaded the lastest grub2 cvs (1.93) and can't seems to get 
configfile to work... it keeps rebooting.

grub> configfile /grub.cfg
... system reboots

Here's what's in grub.cfg
title Linux Init
         linux /linux/bzc1



Another problem that with the older 1.92 is that it doesn't work with 
initrd with 1.5GB RAM. It works fine with 128MB RAM. Same config, just 
less ram.


Also, it seems grub2 doesn't support very long command line. Anyway to 
increase the command line to more than 255 bytes as in the following ...

title Linux Test
         linux /linux/bzc1 root=/dev/ram0 ro \
         network=fixed \
         netaddr=188.18.88.188 \
         broadcast=188.18.88.191 \
         netmask=255.255.255.192 \
         gateway=188.18.88.139 \
         dns=188.18.88.139 \
         nssdns=0 \
         apm=1 gpm=1 \
         hostname=boston.corp.fedex.com master=hda \
         modules=\"e100\" \
         testing=very_long_line second_line=maybe
         initrd /linux/ramc1.gz



Thanks,
Jeff



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

* Re: grub cvs ... configfile
  2006-04-02  5:58 grub cvs ... configfile Jeff Chua
@ 2006-04-02 11:30 ` Marco Gerards
  2006-04-19 11:10   ` Jeff Chua
  0 siblings, 1 reply; 14+ messages in thread
From: Marco Gerards @ 2006-04-02 11:30 UTC (permalink / raw)
  To: The development of GRUB 2

Jeff Chua <jeff84@silk.corp.fedex.com> writes:

> I just downloaded the lastest grub2 cvs (1.93) and can't seems to get
> configfile to work... it keeps rebooting.

The syntax of your configuration file is not correct.  It's a bug that
GRUB reboots in this case.  It's a known bug an it will be fixed and
some documentation for the wiki will be written.

--
Marco




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

* Re: grub cvs ... configfile
  2006-04-02 11:30 ` Marco Gerards
@ 2006-04-19 11:10   ` Jeff Chua
  2006-04-19 11:16     ` Marco Gerards
  0 siblings, 1 reply; 14+ messages in thread
From: Jeff Chua @ 2006-04-19 11:10 UTC (permalink / raw)
  To: The development of GRUB 2



On Sun, 2 Apr 2006, Marco Gerards wrote:

> Jeff Chua <jeff84@silk.corp.fedex.com> writes:
>
>> I just downloaded the lastest grub2 cvs (1.93) and can't seems to get
>> configfile to work... it keeps rebooting.
>
> The syntax of your configuration file is not correct.  It's a bug that
> GRUB reboots in this case.  It's a known bug an it will be fixed and
> some documentation for the wiki will be written.

Marco,

Any chance of fixing this ...

Thanks,
Jeff




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

* Re: grub cvs ... configfile
  2006-04-19 11:10   ` Jeff Chua
@ 2006-04-19 11:16     ` Marco Gerards
  2006-04-19 11:27       ` Jeff Chua
  2006-04-19 16:24       ` Vesa Jääskeläinen
  0 siblings, 2 replies; 14+ messages in thread
From: Marco Gerards @ 2006-04-19 11:16 UTC (permalink / raw)
  To: The development of GRUB 2

Jeff Chua <jeff84@silk.corp.fedex.com> writes:

> On Sun, 2 Apr 2006, Marco Gerards wrote:
>
>> Jeff Chua <jeff84@silk.corp.fedex.com> writes:
>>
>>> I just downloaded the lastest grub2 cvs (1.93) and can't seems to get
>>> configfile to work... it keeps rebooting.
>>
>> The syntax of your configuration file is not correct.  It's a bug that
>> GRUB reboots in this case.  It's a known bug an it will be fixed and
>> some documentation for the wiki will be written.
>
> Marco,
>
> Any chance of fixing this ...

Oh sorry, I forgot to reply on this one.  It should all be fixed in
CVS.  Your menu entries should look like this:

@ foo {
  linux ...
  initrd ...
}

@ bar {
  ...
  ...
}

--
Marco




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

* Re: grub cvs ... configfile
  2006-04-19 11:16     ` Marco Gerards
@ 2006-04-19 11:27       ` Jeff Chua
  2006-04-19 13:12         ` Marco Gerards
  2006-04-19 16:24       ` Vesa Jääskeläinen
  1 sibling, 1 reply; 14+ messages in thread
From: Jeff Chua @ 2006-04-19 11:27 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, 19 Apr 2006, Marco Gerards wrote:

> Oh sorry, I forgot to reply on this one.  It should all be fixed in
> CVS.  Your menu entries should look like this:
>
> @ foo {
>  linux ...
>  initrd ...
> }


got "parse error" with ...

@ Linux Test {
         linux /linux/bzc1 root=/dev/ram0 ro \
         network=fixed \
         gateway=192.168.243.1 \
         netaddr=192.168.243.118 \
         broadcast=192.168.243.255 \
         netmask=255.255.255.0 \
         dns=192.168.243.1 \
         nssdns=1 \
         hostname=junior.corp.fedex.com master=hda \
         modules=\"pcnet32\" \
         testing=very_long_line second_line=maybe
         initrd /linux/ramc1.gz
}



Is this the problem or something else ...


Here's my complete grub.cfg ...


default 1

timeout 10

@ Linux Test {
 	linux /linux/bzc1 root=/dev/ram0 ro \
 	network=fixed \
 	gateway=192.168.243.1 \
 	netaddr=192.168.243.118 \
 	broadcast=192.168.243.255 \
 	netmask=255.255.255.0 \
 	dns=192.168.243.1 \
 	nssdns=1 \
 	hostname=junior.corp.fedex.com master=hda \
 	modules=\"pcnet32\" \
 	testing=very_long_line second_line=maybe
 	initrd /linux/ramc1.gz
}

@ Linux Init {
 	linux /linux/bzc1 root=/dev/hda2 ro \
 	testing=very_long_line second_line=maybe
}

#title Xen 3.0 / XenLinux 2.6
#	multiboot /linux/xen-3.0.gz console=vga
#	module /linux/vmlinuz-2.6-xen root=/dev/hda2 ro console=tty0

@ Linux Test 2 {
 	linux /linux/bzc1 root=/dev/ram0 ro \
 	testing=very_long_line second_line=maybe
 	initrd /linux/ramc1.gz
}





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

* Re: grub cvs ... configfile
  2006-04-19 11:27       ` Jeff Chua
@ 2006-04-19 13:12         ` Marco Gerards
  2006-04-19 15:30           ` Jeff Chua
  0 siblings, 1 reply; 14+ messages in thread
From: Marco Gerards @ 2006-04-19 13:12 UTC (permalink / raw)
  To: The development of GRUB 2

Jeff Chua <jeff84@silk.corp.fedex.com> writes:

> @ Linux Test {
>          linux /linux/bzc1 root=/dev/ram0 ro \
>          network=fixed \
>          gateway=192.168.243.1 \
>          netaddr=192.168.243.118 \
>          broadcast=192.168.243.255 \
>          netmask=255.255.255.0 \
>          dns=192.168.243.1 \
>          nssdns=1 \
>          hostname=junior.corp.fedex.com master=hda \
>          modules=\"pcnet32\" \
>          testing=very_long_line second_line=maybe
>          initrd /linux/ramc1.gz
> }

I think you have to quote the name:

"Linux Test"

--
Marco




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

* Re: grub cvs ... configfile
  2006-04-19 13:12         ` Marco Gerards
@ 2006-04-19 15:30           ` Jeff Chua
  2006-04-19 16:24             ` Marco Gerards
  0 siblings, 1 reply; 14+ messages in thread
From: Jeff Chua @ 2006-04-19 15:30 UTC (permalink / raw)
  To: The development of GRUB 2


On Wed, 19 Apr 2006, Marco Gerards wrote:

> I think you have to quote the name:
> "Linux Test"

Ok, quoting works, but these two doesn't ...

 	default 2
 	timeout 10


works under grub-1.92.


Thanks,
Jeff.



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

* Re: grub cvs ... configfile
  2006-04-19 15:30           ` Jeff Chua
@ 2006-04-19 16:24             ` Marco Gerards
  0 siblings, 0 replies; 14+ messages in thread
From: Marco Gerards @ 2006-04-19 16:24 UTC (permalink / raw)
  To: The development of GRUB 2

Jeff Chua <jeff84@silk.corp.fedex.com> writes:

> On Wed, 19 Apr 2006, Marco Gerards wrote:
>
>> I think you have to quote the name:
>> "Linux Test"
>
> Ok, quoting works, but these two doesn't ...
>
>  	default 2
>  	timeout 10

Yeah, GRUB is still under development.  Things break and features are
missing.  I think in this case I might have broken something. :-)

I'll look at it...soon :)

--
Marco




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

* Re: grub cvs ... configfile
  2006-04-19 11:16     ` Marco Gerards
  2006-04-19 11:27       ` Jeff Chua
@ 2006-04-19 16:24       ` Vesa Jääskeläinen
  2006-04-19 16:30         ` Hollis Blanchard
  1 sibling, 1 reply; 14+ messages in thread
From: Vesa Jääskeläinen @ 2006-04-19 16:24 UTC (permalink / raw)
  To: The development of GRUB 2

Marco Gerards wrote:
> Oh sorry, I forgot to reply on this one.  It should all be fixed in
> CVS.  Your menu entries should look like this:
> 
> @ foo {
>   linux ...
>   initrd ...
> }
> 
> @ bar {
>   ...
>   ...
> }

Hi,

I think the menuentry were much better and more descriptive. I don't
think there is a need to have both and it only confuses people. So I
would propose to remove @-version.

Thanks,
Vesa Jääskeläinen




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

* Re: grub cvs ... configfile
  2006-04-19 16:24       ` Vesa Jääskeläinen
@ 2006-04-19 16:30         ` Hollis Blanchard
  2006-04-19 16:35           ` Marco Gerards
  0 siblings, 1 reply; 14+ messages in thread
From: Hollis Blanchard @ 2006-04-19 16:30 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, 2006-04-19 at 19:24 +0300, Vesa Jääskeläinen wrote:
> Marco Gerards wrote:
> > Oh sorry, I forgot to reply on this one.  It should all be fixed in
> > CVS.  Your menu entries should look like this:
> > 
> > @ foo {
> >   linux ...
> >   initrd ...
> > }
> > 
> > @ bar {
> >   ...
> >   ...
> > }
> 
> Hi,
> 
> I think the menuentry were much better and more descriptive. I don't
> think there is a need to have both and it only confuses people. So I
> would propose to remove @-version.

I agree. The "@" is a very odd syntax. Since "menuentry" works as well,
I think "@" should be removed.

-Hollis




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

* Re: grub cvs ... configfile
  2006-04-19 16:30         ` Hollis Blanchard
@ 2006-04-19 16:35           ` Marco Gerards
  2006-04-20  2:36             ` Yoshinori K. Okuji
  0 siblings, 1 reply; 14+ messages in thread
From: Marco Gerards @ 2006-04-19 16:35 UTC (permalink / raw)
  To: The development of GRUB 2

Hollis Blanchard <hollis@penguinppc.org> writes:

>> I think the menuentry were much better and more descriptive. I don't
>> think there is a need to have both and it only confuses people. So I
>> would propose to remove @-version.
>
> I agree. The "@" is a very odd syntax. Since "menuentry" works as well,
> I think "@" should be removed.

It was added because Okuji wanted something short for this.  I do not
care as long as there is a long command.

--
Marco






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

* Re: grub cvs ... configfile
  2006-04-19 16:35           ` Marco Gerards
@ 2006-04-20  2:36             ` Yoshinori K. Okuji
  2006-04-20  2:53               ` Hollis Blanchard
  0 siblings, 1 reply; 14+ messages in thread
From: Yoshinori K. Okuji @ 2006-04-20  2:36 UTC (permalink / raw)
  To: The development of GRUB 2

On Wednesday 19 April 2006 18:35, Marco Gerards wrote:
> Hollis Blanchard <hollis@penguinppc.org> writes:
> >> I think the menuentry were much better and more descriptive. I don't
> >> think there is a need to have both and it only confuses people. So I
> >> would propose to remove @-version.
> >
> > I agree. The "@" is a very odd syntax. Since "menuentry" works as well,
> > I think "@" should be removed.
>
> It was added because Okuji wanted something short for this.  I do not
> care as long as there is a long command.

Marco is right. This was my request. @ is just a command aliased for 
menuentry, and I like it. Since you are not obligated to use @, please do not 
remove it.

Okuji



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

* Re: grub cvs ... configfile
  2006-04-20  2:36             ` Yoshinori K. Okuji
@ 2006-04-20  2:53               ` Hollis Blanchard
  2006-04-20  3:26                 ` Yoshinori K. Okuji
  0 siblings, 1 reply; 14+ messages in thread
From: Hollis Blanchard @ 2006-04-20  2:53 UTC (permalink / raw)
  To: The development of GRUB 2

On Apr 19, 2006, at 9:36 PM, Yoshinori K. Okuji wrote:

> On Wednesday 19 April 2006 18:35, Marco Gerards wrote:
>> Hollis Blanchard <hollis@penguinppc.org> writes:
>>>> I think the menuentry were much better and more descriptive. I don't
>>>> think there is a need to have both and it only confuses people. So I
>>>> would propose to remove @-version.
>>>
>>> I agree. The "@" is a very odd syntax. Since "menuentry" works as 
>>> well,
>>> I think "@" should be removed.
>>
>> It was added because Okuji wanted something short for this.  I do not
>> care as long as there is a long command.
>
> Marco is right. This was my request. @ is just a command aliased for
> menuentry, and I like it. Since you are not obligated to use @, please 
> do not
> remove it.

Offering multiple commands that do the same thing is not a good design 
philosphy, and from the other comments on this subject I know I'm not 
alone in that belief. No offense, but I don't think one developer 
liking it is a good enough reason.

I still would like to see it removed.

-Hollis




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

* Re: grub cvs ... configfile
  2006-04-20  2:53               ` Hollis Blanchard
@ 2006-04-20  3:26                 ` Yoshinori K. Okuji
  0 siblings, 0 replies; 14+ messages in thread
From: Yoshinori K. Okuji @ 2006-04-20  3:26 UTC (permalink / raw)
  To: The development of GRUB 2

On Thursday 20 April 2006 04:53, Hollis Blanchard wrote:
> Offering multiple commands that do the same thing is not a good design
> philosphy, and from the other comments on this subject I know I'm not
> alone in that belief. No offense, but I don't think one developer
> liking it is a good enough reason.

I'm not alone, either. I have talked about this with my collegue in PUPA, and 
he agreed with me.

I'd like to know why it is a bad phylosophy. In many systems, aliases are 
often provided for convenience. Look at test and [. Look at true and :. Short 
cuts are also a kind of aliases. I don't see anything wrong with this. "There 
should be only one way to do a thing" is Python's phylosophy, but Perl 
developers wouldn't agree with you.

Of course, "I like it" is not a good reason. But menuentry is too long to 
type. This is good enough for me.

Okuji



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

end of thread, other threads:[~2006-04-20  3:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-02  5:58 grub cvs ... configfile Jeff Chua
2006-04-02 11:30 ` Marco Gerards
2006-04-19 11:10   ` Jeff Chua
2006-04-19 11:16     ` Marco Gerards
2006-04-19 11:27       ` Jeff Chua
2006-04-19 13:12         ` Marco Gerards
2006-04-19 15:30           ` Jeff Chua
2006-04-19 16:24             ` Marco Gerards
2006-04-19 16:24       ` Vesa Jääskeläinen
2006-04-19 16:30         ` Hollis Blanchard
2006-04-19 16:35           ` Marco Gerards
2006-04-20  2:36             ` Yoshinori K. Okuji
2006-04-20  2:53               ` Hollis Blanchard
2006-04-20  3:26                 ` Yoshinori K. Okuji

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.