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

Robert Millan rmh at aybabtu.com
Thu Jan 28 21:01:00 UTC 2010


tags 540786 - patch
tags 540786 moreinfo
forcemerge 540786 567077
thanks

On Mon, Aug 10, 2009 at 12:56:56PM +0200, Robert Wohlrab wrote:
> The problem is now that grub-probe now tests st_dev of / against st_rdev of 
> the block devices in util/getroot.c find_root_device(..).
>  if (S_ISBLK (st.st_mode) && st.st_rdev == dev)
> 
> Here the complete struct stat of /dev/sda3
> 1: st = {
>  [...]
>  st_rdev = 2051,
> and of /
> 1: st = {
>  st_dev = 16,
>  [...]

We need some way to match up the files with the device that contains them.
If that's not possible, we won't be able to support /boot in btrfs.

But if you just want grub-mkconfig not to break with btrfs in /, we need more
information on what calls are failing.  There's a gazillon invocations of
grub-probe in there, I can't do anything without knowing which one is causing
the script to fail.

-- 
Robert Millan

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





More information about the Pkg-grub-devel mailing list