Bug#540786: [grub-common] update-grub/grub-mkconfig doesnt work with btrfs as rootfs

Robert Millan rmh at aybabtu.com
Fri Jan 29 14:11:49 UTC 2010


On Thu, Jan 28, 2010 at 10:23:11PM -0500, Joey Hess wrote:
> root at gnu:/home/joey>grub-probe --target=device / # btrfs
> grub-probe: error: cannot find a device for / (is /dev mounted?).

Ok.  Problem here is not related to lack of btrfs support in GRUB, but to
Linux not providing a match between st_rdev and st_dev (even though a
theoretical match exists).

We're working on that.

> root at gnu:/home/joey>grub-probe --device /dev/hda2 --target=fs_uuid
> grub-probe: error: unknown filesystem.

UUID fetching itself doesn't sound too much work.  I'll probably implement
this as well.

> I had meant to send the attached patch to #540786 yesterday
> (it's the patch that the patch I sent to #567077 depends on).
> This makes it fall back to the old method of parsing
> the fstab to find the info when grub-probe fails.

Sorry but I want a proper fix.  fstab parsing had its own set of problems
and it was (rightfully, IMO) abandoned.

-- 
Robert Millan

  "Be the change you want to see in the world" -- Gandhi





More information about the Pkg-grub-devel mailing list