Thu 16 Jun 2011 11:59:21 PM UTC, original submission:
Hi,
I just built grub-1.99 and am having a problem with grub-install. If I run grub-install I get the following error:
grub-install --no-floppy --grub-setup=/bin/true /dev/sdb
/usr/sbin/grub-probe: error: cannot stat `/dev/root'.
This does not occur with grub-1.99rc2. So, I tried reverting the changes in grub-core/kern/emu/getroot.c in going from grub-1.99rc2 to grub-1.99, ie, I applied the following patch to grub-1.99/grub-core/kern/emu/getroot.c:
--- grub-1.99.old/grub-core/kern/emu/getroot.c 2011-04-25 09:11:52.000000000 -0400
+++ grub-1.99.new/grub-core/kern/emu/getroot.c 2011-04-16 09:28:59.000000000 -0400
@@ -216,6 +216,9 @@
/* Now scan visible mounts for the ones we're interested in. */
for (i = entry_len - 1; i >= 0; i--)
{
+ if (entries[i].major != 0)
+ continue; /* not a virtual device */
+
if (!*entries[i].device)
continue;
---
This makes grub-1.99/grub-core/kern/emu/getroot.c identical to
grub-1.99rc2/grub-core/kern/emu/getroot.c.
With this reversion, grub-1.99 now works fine. I'm not sure if this is a bug or not, but it would be nice to resolve this issue.
I'm running on an i686-pc-linux-gnu system under linux-2.6.39.1, gcc-4.5.3, glib-2.13, binutils-2.21, udev-171.
thanks much for your time,
John
|