All of lore.kernel.org
 help / color / mirror / Atom feed
* grub-probe can't find device (regression) Bug #33133
@ 2011-04-20 23:09 Ian Dall
  2011-04-21  7:29 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Dall @ 2011-04-20 23:09 UTC (permalink / raw)
  To: grub-devel

I have reported bug #33133 in savannah.

The issue is that "grub-probe -v --target=device /tmp/root/boot" fails
in current trunk. The issue appears to have been introduced in revision
3214 into
grub/grub-core/kern/emu/getroot.c:grub_find_root_device_from_mountinfo().

/tmp for me is a tmpfs. /tmp/root has mounted on it a USB pen
(/dev/sdd1).

Steppign through with gdb, it seems that the list of entries gets
created properly, but around line 209, there is something curious:

      if (entries[i].major != 0)
	continue; /* not a virtual device */

which I can't understand. Its effect is to always skip over mount points
for real devices. I'm not really sure I completely understand what this
virtual device work around is. But may this whole test is just bogus.
Why not the "lowest" mount enclosing the path?

Regards,
Ian
 

-- 
Ian Dall <ian@beware.dropbear.id.au>



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

end of thread, other threads:[~2011-04-21  9:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 23:09 grub-probe can't find device (regression) Bug #33133 Ian Dall
2011-04-21  7:29 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-21  9:27   ` Colin Watson

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.