bugGNU GRUB - Bugs: bug #37073, regression : grub2-probe fails...


You are not allowed to post comments on this tracker with your current authentication level.

bug #37073: regression : grub2-probe fails with dmraid

Submitted by:  Guillaume BINET <gbin>
Submitted on:  Fri Aug 10 20:13:48 2012  
Category: FilesystemSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Guillaume BINET
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Mon Apr 15 06:15:01 2013, comment #3:

phcoder: yes ! it fixes it !
I made a gentoo ebuild including the path here :

Guillaume BINET <gbin>
Sun Apr 14 19:31:02 2013, comment #2:

Try this patch:
=== modified file 'util/getroot.c'
--- util/getroot.c 2013-04-12 20:37:59 +0000
+++ util/getroot.c 2013-04-14 19:30:02 +0000
@@ -2030,6 +2030,7 @@
goto devmapper_out;
mapper_name = child_name;
+ *is_part = 1;

if (! mapper_name && node)

Vladimir Serbinenko <phcoder>
Project Administrator
Sun Apr 14 19:29:20 2013, comment #1:

Sorry for delay. Can you post the output of dmsetup table /dev/mapper/X and dmsetup info /dev/mapper/X where S would go through all available devices in /dev/mapper.

Vladimir Serbinenko <phcoder>
Project Administrator
Fri Aug 10 20:13:48 2012, original submission:

Originally submitted here : https://bugs.gentoo.org/show_bug.cgi?id=430748

This is a regression of 2.00 from 2.00-beta6

# /usr/sbin/grub2-probe /boot/grub2/
/usr/sbin/grub2-probe: error: unknown filesystem.
zsh: exit 1 /usr/sbin/grub2-probe -vvv /boot/grub2/

[The full log with -vvv is in attachment]

I have a dmraid (intel fake Raid) mounted like this :
# mount
rootfs on / type rootfs (rw)
/dev/mapper/isw_ddbeejgcgd_Volume03 on / type ext4 (rw,noatime,discard,commit=0)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=1011443,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/isw_ddbeejgcgd_Volume01 on /boot type ext2 (rw,noatime,discard)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

a device.map like this:
(hd0) /dev/mapper/isw_ddbeejgcgd_Volume0

I startup my array from an initramfs with that :
echo "Detect the raid arrays ..."
/sbin/dmraid -ay || rescue_shell
/sbin/dmsetup.static mknodes || rescue_shell

Reproducible: Always

Actual Results:
see log attached

Expected Results:
As with the beta6 (with exactly the same system, same config files):
# /usr/sbin/grub2-probe /boot/grub2/
[The full log with -vvv is in attachment too for comparison]

I tried the head of the development tree and it is the same behavior as the 2.00

Guillaume BINET <gbin>


Attached Files
file #26345:  probe 2.00.txt added by gbin (6kB - text/plain - The 2 logs for you to compare.)
file #26346:  probe beta6.txt added by gbin (16kB - text/plain - The 2 logs for you to compare.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by floppym
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by gbin (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Apr 15 06:40:02 2013phcoderStatusNone=>Fixed
    Sun Apr 14 19:36:26 2013floppymCarbon-Copy-=>Added floppym
    Fri Aug 10 20:13:48 2012gbinAttached File-=>Added probe 2.00.txt, #26345
      Attached File-=>Added probe beta6.txt, #26346

    Back to the top

    Powered by Savane 3.1-cleanup1