Re: grub2 efi patches

2008-02-08 Thread Alexandre Boeglin
Le mer 06 fév 2008 à 01:11:04 +0100, Robert Millan a écrit : > On Wed, Feb 06, 2008 at 12:11:41AM +0100, Alexandre Boeglin wrote: > > This was just a one line fix: > > > > Index: normal/arg.c > > === > > RCS file: /sources/grub/grub2/

Re: [PATCH] simplify grub_raid_array

2008-02-08 Thread Robert Millan
On Wed, Feb 06, 2008 at 05:45:07PM +0100, Robert Millan wrote: > > Unless I missed something, it seems that grub_raid_array contains redundant > information (`name' is already present via `disk->name'). I propose to > simplify it this way. Committed. -- Robert Millan I know my rights; I want

Re: [PATCH] tell the user why they are in rescue mode

2008-02-08 Thread Sam Morris
On Fri, 08 Feb 2008 02:10:29 +0100, Robert Millan wrote: > Hi Sam, > > On Thu, Feb 07, 2008 at 06:34:26PM +, Sam Morris wrote: >> diff -ru grub2-1.96+20080203+orig/kern/main.c >> grub2-1.96+20080203+sam/kern/main.c --- >> grub2-1.96+20080203+orig/kern/main.c 2008-01-05 12:04:35.0 >> +

Re: The menu passes too quickly.

2008-02-08 Thread Robert Millan
On Sat, Feb 09, 2008 at 12:23:53AM +0530, shirish wrote:> > set root=(hd1,1) > font (hd1,1)/usr/share/grub/unicode.pff ; then > set gfxmode=640x480 > insmod gfxterm > insmod vbe > terminal gfxterm > Ugh, that "; then" looks really bad. Who told you to put that in your grub.cfg ? :-) R

The menu passes too quickly.

2008-02-08 Thread shirish
Hi all, First of all let me congratulate everybody on 1.96 release. Just one of the users who has been waiting to see what u guys cook :) Now for the first time I'm able to see something other than the rectangular box but the problem is it passes too quickly. I want to make sure that it takes atl

[PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Christian Franke
A CD created by "grub-mkrescue --image-type=cdrom" does not work for me for some reason. Is it probably necessary to supply -boot-load-seg to genisoimage? But booting a grub2 rescue floppy image in El Torito emulation mode works. This patch adds the image type "floppycd" to create such a CD.

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Sam Morris
On Fri, 2008-02-08 at 15:52 +0100, Robert Millan wrote: > New patch to fix partmap detection in LVM/RAID. Changes in comparison to > previous patch: (gdb) run -t partmap /boot/grub/ Starting program: /home/sam/grub/grub2/grub-probe -t partmap /boot/grub/ Program r

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 07:45:48PM +0100, Christian Franke wrote: > A CD created by "grub-mkrescue --image-type=cdrom" does not work for me > for some reason. This is AFAIK the most widely used method for CD boot. Do other CDs work for you? If this is a bug, I think it's better to fix it instea

Re: [PATCH] tell the user why they are in rescue mode

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 06:44:26PM +, Sam Morris wrote: > > While that works, the output looks like this: > > Entering rescue mode... > error: out of disk > > _ > > Which does not present the information in the clearest possible way: it > looks like the error happened in the rescue mode

[PATCH] manpages for everything

2008-02-08 Thread Robert Millan
Hey, I just wrote manpages for everything! Well, actually I wrote this patch that makes our build system probe for help2man, and use it to generate a manpage automatically for each utility. :-) They can be a good substitute for the info manual we don't have yet, or (in the future) a complement t

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Sam Morris
On Fri, 08 Feb 2008 20:38:56 +0100, Robert Millan wrote: > On Fri, Feb 08, 2008 at 07:20:31PM +, Sam Morris wrote: >> On Fri, 2008-02-08 at 15:52 +0100, Robert Millan wrote: >> > New patch to fix partmap detection in LVM/RAID. Changes in >> > comparison to previous patch: >> >> (gdb)

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Robert Millan
New patch to fix partmap detection in LVM/RAID. Changes in comparison to previous patch: - Add LVM detection. - Rename the structures/functions to make them more descriptive. - Fix a minor memleak. This is only known to work on proof-of-concept test systems. *Please* anyone who was affec

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 09:38:25PM +, Sam Morris wrote: > > diff -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp -N > > ../grub2/disk/raid.c ./disk/raid.c --- ../grub2/disk/raid.c > > 2008-02-08 13:35:05.0 +0100 +++ ./disk/raid.c 2008-02-08 > > 20:36:47.0

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 11:03:07PM +0100, Christian Franke wrote: > > Yes, all of my boot CDs work :-) > > Meantime, I found the problem: cdboot.img was > 512 bytes. I forgot to > add the ld script necessary for the Cygwin build (-N does not work). > Should have checked this first, sorry. Is t

Re: grub2 efi patches

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 12:38:06PM +0100, Alexandre Boeglin wrote: > Le mer 06 fév 2008 à 01:11:04 +0100, Robert Millan a écrit : > > On Wed, Feb 06, 2008 at 12:11:41AM +0100, Alexandre Boeglin wrote: > > > This was just a one line fix: > > > > > > Index: normal/arg.c > > > ===

Re: [PATCH] improve error messages

2008-02-08 Thread Robert Millan
On Wed, Feb 06, 2008 at 05:41:31PM +0100, Robert Millan wrote: > > Just a few error message improvements. Committed. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.) __

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Pavel Roskin
Quoting Robert Millan <[EMAIL PROTECTED]>: You could ask Marco or Okuji and see what they think about it. If they agree with you, I'll have to shut up ;-) I'm neither of both, but here are my two cents: I think it's a good idea. Many old BIOSes are buggy when it comes to CD-ROM boot suppo

[PATCH] sleep.mod

2008-02-08 Thread Robert Millan
A sleep command. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.) diff -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp -N ../grub2/commands/sleep.c ./commands/sleep.c --- ../grub2/commands/sleep.c 1970-01-

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 07:20:31PM +, Sam Morris wrote: > On Fri, 2008-02-08 at 15:52 +0100, Robert Millan wrote: > > New patch to fix partmap detection in LVM/RAID. Changes in comparison to > > previous patch: > > (gdb) run -t partmap /boot/grub/ > Starting program: /home/sam

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Christian Franke
Robert Millan wrote: On Fri, Feb 08, 2008 at 07:45:48PM +0100, Christian Franke wrote: A CD created by "grub-mkrescue --image-type=cdrom" does not work for me for some reason. This is AFAIK the most widely used method for CD boot. Do other CDs work for you? Yes, all of my boot C

Re: [PATCH] Build on Cygwin

2008-02-08 Thread Robert Millan
On Fri, Nov 23, 2007 at 11:31:37PM +0100, Christian Franke wrote: > This patch enables build on Cygwin. It handles the issues introduced by > the non-ELF object format. > > A linker script replaces the unsupported -N option. PE modules are > converted to ELF. ELF-only assembly language features

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Robert Millan
On Sat, Feb 09, 2008 at 12:17:16AM +0100, Christian Franke wrote: > > This it is a small update to the "[PATCH] Build on Cygwin" posted here > 2007-11-23, no feedback yet. Ok, I just replied. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unabl

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 06:07:59PM -0500, Pavel Roskin wrote: > Quoting Robert Millan <[EMAIL PROTECTED]>: > > >You could ask Marco or Okuji and see what they think about it. If they > >agree with you, I'll have to shut up ;-) > > I'm neither of both, but here are my two cents: > > I think it's

[PATCH] print CR as hex in cat command

2008-02-08 Thread Christian Franke
Here a small patch for a minor issue: cat command does not work well for files including '\r' because the previous line may be overwritten. In grub-emu, files with cr/lf line endings are invisible due to ncurses behavior. Christian 2008-02-08 Christian Franke <[EMAIL PROTECTED]> *

Re: [PATCH] simplify grub_raid_array

2008-02-08 Thread Jeroen Dekkers
At Wed, 6 Feb 2008 23:59:54 +0100, Robert Millan wrote: > > On Wed, Feb 06, 2008 at 11:43:39PM +0100, Jeroen Dekkers wrote: > > At Wed, 6 Feb 2008 17:45:07 +0100, > > Robert Millan wrote: > > > Unless I missed something, it seems that grub_raid_array contains > > > redundant > > > information (`n

Re: [PATCH] simplify grub_raid_array

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 11:56:07PM +0100, Jeroen Dekkers wrote: > At Wed, 6 Feb 2008 23:59:54 +0100, > Robert Millan wrote: > > > > On Wed, Feb 06, 2008 at 11:43:39PM +0100, Jeroen Dekkers wrote: > > > At Wed, 6 Feb 2008 17:45:07 +0100, > > > Robert Millan wrote: > > > > Unless I missed something,

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 07:45:48PM +0100, Christian Franke wrote: >--overlay=DIR overlay directory DIR in the memdisk image >--pkglibdir=DIR use images from directory DIR instead of > ${pkglibdir} >--grub-mkimage=FILE use FILE as grub-mkimage > - --image-type=TYP

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Christian Franke
Robert Millan wrote: On Fri, Feb 08, 2008 at 11:03:07PM +0100, Christian Franke wrote: Yes, all of my boot CDs work :-) Meantime, I found the problem: cdboot.img was > 512 bytes. I forgot to add the ld script necessary for the Cygwin build (-N does not work). Should have checked this first

[PATCH] multiboot CVS module

2008-02-08 Thread Robert Millan
When this script is run inside GRUB Legacy directory, it will convert it to a Multiboot directory by ripping lots of stuff and patching some files, such that it only contains static files and is ready to be imported as a CVS module. There are still some open questions though, like what do we put

[PATCH] if timeout is set to zero, don't bother drawing the menu

2008-02-08 Thread Robert Millan
Fixes an ugly result of setting timeout=0. When this is combined with the "sleep" patch I just sent, user can implement hiddenmenu-like functionality via scripting: echo -n "Press `ESC' to enter the menu... " if sleep -v -i 10 ; then set timeout=10 else set timeout=0 fi -- Robert Millan

Re: [PATCH] Build on Cygwin

2008-02-08 Thread Christian Franke
Robert Millan wrote: On Fri, Nov 23, 2007 at 11:31:37PM +0100, Christian Franke wrote: This patch enables build on Cygwin. It handles the issues introduced by the non-ELF object format. A linker script replaces the unsupported -N option. PE modules are converted to ELF. ELF-only assembly l

Re: [PATCH] Create floppy emulation boot CD with grub-mkimage

2008-02-08 Thread Christian Franke
Robert Millan wrote: On Fri, Feb 08, 2008 at 07:45:48PM +0100, Christian Franke wrote: --overlay=DIR overlay directory DIR in the memdisk image --pkglibdir=DIR use images from directory DIR instead of ${pkglibdir} --grub-mkimage=FILE use FILE as grub-mkimage -

Re: [PATCH] manpages for everything

2008-02-08 Thread Robert Millan
On Fri, Feb 08, 2008 at 10:29:00PM +0100, Robert Millan wrote: > + $(HELP2MAN) --no-info $(builddir)/$$file > > $(DESTDIR)$(mandir)/$$dest.1; \ I think I missed --section here. Possibly other options as well. --source=FSF ? -- Robert Millan I know my rights; I want my phone call! What

Re: The menu passes too quickly

2008-02-08 Thread shirish
> Message: 1 > Date: Fri, 8 Feb 2008 20:26:05 +0100 > From: Robert Millan <[EMAIL PROTECTED]> > Subject: Re: The menu passes too quickly. > To: The development of GRUB 2 > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=utf-8 > > On Sat, Feb 09, 2008 at 12:23:53AM +0530, shiris

Re: [PATCH] manpages for everything

2008-02-08 Thread Jordi Mallach
On Sat, Feb 09, 2008 at 01:17:16AM +0100, Robert Millan wrote: > I think I missed --section here. Possibly other options as well. > --source=FSF ? Yes. For reference, I use this for GNU mailutils. #!/bin/sh ## mangen.sh ## Copyright (C) 2004 Free Software Foundation, Inc. ## ## GNU Mailutils i

Re: The menu passes too quickly

2008-02-08 Thread shirish
Hi all, Some more info. I have 2 hard disk drives. One is a 160 IDE HDD & the other 80 GB IDE HDD. 160 GB = Other OSS = IDE0 80 GB = GNU/Linux = IDE1 I hope somebody can help me, thanx. -- Regards, Shirish Agarwal This email is licensed under http://creativecommons.or

Re: root seems to be incorrectly set after install (patch works)

2008-02-08 Thread George Lengel
I have looked at this problem deeply, and I think the following changes would be required: - A variable to specify where grub.cfg and modules are present. Currently, we have it only for a prefix without a drive. So grub_root_drive or something must be added. It could be added to kern/i386/pc/st