grub.cfg parser doesn't fail gracefuly on syntax error

2007-05-05 Thread Robert Millan
As reported by Luca Capello in Debian BTS: The following grub.cfg menuentry has a syntax error. However, grub won't display an error message and let you continue. Instead, it will start an infin loop, rendering the machine unbootable: menuentry "test" { $ } -- Robert Millan My spam trap i

Re: [PATCH] terminal is not set back to console

2007-05-05 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Fri, May 04, 2007 at 10:30:33AM +0200, Marco Gerards wrote: >> Robert Millan <[EMAIL PROTECTED]> writes: >> >> > When using gfxterm, and booting a kernel in this mode, Linux won't be able >> > to >> > print anything to the console. This patch fixes

Re: GPT on PC/BIOS computers

2007-05-05 Thread Marco Gerards
"Javier Rodríguez Sánchez" <[EMAIL PROTECTED]> writes: > Hello, I have tried the patch and it works well, but I have one question. > It's necessary to be a MBR partition scheme? because I need a MBR > emulation from the GPT scheme to Grub2 loader works. If I only let the GPT > scheme with the EF

Re: GPT on PC/BIOS computers

2007-05-05 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: [...] > I've looked into this, but I need some advice. What's the simplest way to > obtain the corresponding grub_partition_t structure for a partition by knowing > its drive name? You can use grub_partition_iterate. Or open the disk and use ->partitio

pretty colors in gfxterm

2007-05-05 Thread Robert Millan
Hi, Is it possible to archieve a similar effect to what "color cyan/blue white/blue" does in grub legacy, but with grub2 gfxterm? This setup has been the default in debian for a while, and we need to provide something similar if we don't want our users to miss the "blue thingy" during the big mi

Re: pretty colors in gfxterm

2007-05-05 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: Hi Robert, > Is it possible to archieve a similar effect to what "color cyan/blue > white/blue" > does in grub legacy, but with grub2 gfxterm? You could implement a color command, which does the same as the color command in GRUB Legacy. All terminals h

Re: pretty colors in gfxterm

2007-05-05 Thread Robert Millan
On Sat, May 05, 2007 at 06:36:03PM +0200, Marco Gerards wrote: > Robert Millan <[EMAIL PROTECTED]> writes: > > Hi Robert, > > > Is it possible to archieve a similar effect to what "color cyan/blue > > white/blue" > > does in grub legacy, but with grub2 gfxterm? > > You could implement a color c

Re: pretty colors in gfxterm

2007-05-05 Thread Otavio Salvador
Marco Gerards <[EMAIL PROTECTED]> writes: > If having a color command means that GRUB 2 will be used more, I am > willing to add such command. Okuji, do you object? But I am only > willing to add this if the Debian people ensure me that they will > switch to whatever fancy graphics system we imp

grub-probe on powerpc

2007-05-05 Thread Robert Millan
update-grub needs grub-probe to run, which is only available in i386. In principle, this file should be portable. I made this patch (currently applied in debian) to enable it on powerpc as well. However, it seems to have runtime errors (detects size of hd0 as 0 bytes) that I can't debug (becaus