Hi all

I'm hoping this bug has already been fixed. I couldn't find any reference to it online, thus my mail.

Whilst installing Archlinux onto a degraded btrfs (the second disk in a "raid1" configuration was "missing" at the time), I found that grub-mkconfig failed. The output was:
"/usr/sbin/grub-probe: error: could not find canonical path of ."

After a btrfs device delete/balance, grub-mkconfig succeeded without issue. This is, admittedly, an unusual scenario.

In testing post-install I have been unable to reproduce the issue and unfortunately I don't have another spare disk to test with. See attached log where I attempted, unsuccessfully, to reproduce with loop devices.

Similar error message here two weeks ago http://ubuntuforums.org/showthread.php?t=2094451 though not necessarily related.

--
__________
Brendan Hide
http://swiftspirit.co.za/
http://www.webafrica.co.za/?AFF1E97

[root@watricky ~]# dd if=/dev/zero of=/tmp/test0 bs=1 count=0 seek=256G
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000171689 s, 0.0 kB/s
[root@watricky ~]# dd if=/dev/zero of=/tmp/test1 bs=1 count=0 seek=256G
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00021268 s, 0.0 kB/s
[root@watricky ~]# losetup -f --show /tmp/test0
/dev/loop0
[root@watricky ~]# losetup -f --show /tmp/test1
/dev/loop1
[root@watricky ~]# mkfs.btrfs -mraid1 -draid1 /dev/loop0 /dev/loop1

WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using

adding device /dev/loop1 id 2
fs created label btrfs-test on /dev/loop0
        nodesize 4096 leafsize 4096 sectorsize 4096 size 512.00GB
Btrfs Btrfs v0.19
[root@watricky ~]# mkdir /mnt/grubtest
[root@watricky ~]# losetup -d /dev/loop1
[root@watricky ~]# mount -odegraded /dev/loop0 /mnt/grubtest
[root@watricky ~]# grub-probe /mnt/grubtest
btrfs
[root@watricky ~]# grub-probe -V
grub-probe (GRUB) 2.00
[root@watricky ~]# pacman -Qs grub
local/grub-bios 2.00-1
    GNU GRand Unified Bootloader - i386 PC BIOS Modules
local/grub-common 2.00-1
    GNU GRand Unified Bootloader - Utilities and Common Files
[root@watricky ~]# umount /mnt/grubtest
[root@watricky ~]# losetup -d /dev/loop0
[root@watricky ~]# ls -lscrath /tmp/test*
4.1M -rw-r--r-- 1 root root 256G Dec 31 10:19 /tmp/test1
5.2M -rw-r--r-- 1 root root 256G Dec 31 10:32 /tmp/test0
[root@watricky ~]# rm /tmp/test[01]
[root@watricky ~]# logout
_______________________________________________
Bug-grub mailing list
Bug-grub@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to