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

Submitter:  Guillaume BINET <gbin>
Submitted:  Fri 10 Aug 2012 08:13:48 PM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Guillaume BINET
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

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

phcoder: yes ! it fixes it !
I made a gentoo ebuild including the path here :
https://github.com/gbin/gbin-overlay/tree/master/sys-boot/grub

Guillaume BINET <gbin>
Sun 14 Apr 2013 07:31:02 PM UTC, 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;
 
 devmapper_out:
    if (! mapper_name && node)


Vladimir Serbinenko <phcoder>
Group administrator
Sun 14 Apr 2013 07:29:20 PM UTC, 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>
Group administrator
Fri 10 Aug 2012 08:13:48 PM UTC, 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/   
ext2
[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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #26345:  probe 2.00.txt added by gbin (6KiB - text/plain - The 2 logs for you to compare.)
file #26346:  probe beta6.txt added by gbin (16KiB - 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
  • -email is unavailable- added by floppym
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by gbin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-15 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2013-04-14 floppym Carbon-Copy- Added floppym
    2012-08-10 gbin Attached File- Added probe 2.00.txt, #26345
        Attached File- Added probe beta6.txt, #26346

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code