On Sat, Aug 04, 2007 at 04:37:03AM +0200, Magnus Granberg wrote:
> Starting program: 
> /sbin/grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map 
> /dev/md0
> 
> Program received signal SIGSEGV, Segmentation fault.
> grub_device_open (name=0x0) at kern/device.c:38
> 38            if (*name == '\0')
> (gdb) bt
> #0  grub_device_open (name=0x0) at kern/device.c:38
> #1  0x08049385 in setup (prefix=0x80670b0 "(md0)(vg-boot)/grub", 
> dir=0x8067008 "/boot/grub",
>    boot_file=<value optimized out>, core_file=0x805cb2a "core.img", 
> root=0x8067050 "vg-boot", dest=0x0, must_embed=1)
>    at util/i386/pc/grub-setup.c:223
> #2  0x0804a0bc in main (argc=Cannot access memory at address 0xb
> ) at util/i386/pc/grub-setup.c:733
> (gdb)

Could you try the attached patch?

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
diff -ur grub2/util/i386/pc/grub-setup.c grub2.test/util/i386/pc/grub-setup.c
--- grub2/util/i386/pc/grub-setup.c	2007-08-02 22:42:19.000000000 +0200
+++ grub2.test/util/i386/pc/grub-setup.c	2007-08-04 11:55:14.000000000 +0200
@@ -685,6 +685,8 @@
     {
       char *tmp = get_device_name (root_dev);
 
+      grub_util_info ("1 root_dev = %s", root_dev);
+
       if (! tmp)
 	grub_util_error ("Invalid root device `%s'", root_dev);
       
@@ -703,6 +705,8 @@
 	}
     }
 
+  grub_util_info ("2 root_dev = %s", root_dev);
+
 #ifdef __linux__
   if (grub_util_lvm_isvolume (root_dev))
     {
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to