Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430748 - sys-boot/grub-2.00 - grub2-probe fails with dmraid
Summary: sys-boot/grub-2.00 - grub2-probe fails with dmraid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 11:14 UTC by Guillaume BINET
Modified: 2013-04-27 20:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grub2-probe -vvv /boot/grub2/ on 2.00 (probe 2.00.txt,5.87 KB, text/plain)
2012-08-10 11:15 UTC, Guillaume BINET
Details
grub2-probe -vvv /boot/grub2/ on 2.00-beta6 (for comparison) (probe beta6.txt,15.91 KB, text/plain)
2012-08-10 11:15 UTC, Guillaume BINET
Details
Modified grub ebuild to get the upstream patch on grub-2.00 (grub-2.00-r3.ebuild,9.46 KB, text/plain)
2013-04-15 16:55 UTC, Guillaume BINET
Details
Backport of the upstream patch for grub 2.00 (grub-2.00-dmraid.patch,273 bytes, patch)
2013-04-15 16:57 UTC, Guillaume BINET
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume BINET 2012-08-10 11:14:09 UTC
(This is a regression 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]
Comment 1 Guillaume BINET 2012-08-10 11:15:17 UTC
Created attachment 320866 [details]
grub2-probe -vvv /boot/grub2/ on 2.00
Comment 2 Guillaume BINET 2012-08-10 11:15:53 UTC
Created attachment 320868 [details]
grub2-probe -vvv /boot/grub2/ on 2.00-beta6 (for comparison)
Comment 3 Mike Gilbert gentoo-dev 2012-08-10 14:49:12 UTC
Can you give the live ebuild (grub-9999) a try?

If that works, I can look into back porting a patch.

If it fails, this should be reported upstream.
Comment 4 Guillaume BINET 2012-08-10 17:24:44 UTC
Just tried, same behavior :

# grub2-probe -vvv /boot/grub2

grub2-probe: info: Looking for /dev/mapper/isw_ddbeejgcgd_Volume01.
grub2-probe: info: /dev/mapper/isw_ddbeejgcgd_Volume0 is a parent of /dev/mapper/isw_ddbeejgcgd_Volume01.
grub2-probe: info: Looking for /dev/mapper/isw_ddbeejgcgd_Volume01.
grub2-probe: info: /dev/mapper/isw_ddbeejgcgd_Volume0 is a parent of /dev/mapper/isw_ddbeejgcgd_Volume01.
grub2-probe: info: Looking for /dev/mapper/isw_ddbeejgcgd_Volume01.
grub2-probe: info: /dev/mapper/isw_ddbeejgcgd_Volume0 is a parent of /dev/mapper/isw_ddbeejgcgd_Volume01.
grub2-probe: info: opening hd0.
grub-core/kern/disk.c:230: Opening `hd0'...
grub2-probe: info: the size of hd0 is 500129792.
grub-core/kern/fs.c:55: Detecting zfs...
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/mapper/isw_ddbeejgcgd_Volume0' in open_device()
grub-core/fs/zfs/zfs.c:951: label ok 0
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:791: check 2 passed
grub-core/fs/zfs/zfs.c:3072: incorrect nvlist header
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:951: label ok 1
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:791: check 2 passed
grub-core/fs/zfs/zfs.c:3072: incorrect nvlist header
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:951: label ok 2
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:791: check 2 passed
grub-core/fs/zfs/zfs.c:3072: incorrect nvlist header
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:951: label ok 3
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/fs/zfs/zfs.c:791: check 2 passed
grub-core/fs/zfs/zfs.c:3072: incorrect nvlist header
grub-core/kern/fs.c:77: zfs detection failed.
grub-core/kern/fs.c:55: Detecting xfs...
grub-core/kern/fs.c:77: xfs detection failed.
grub-core/kern/fs.c:55: Detecting ufs2...
grub-core/kern/fs.c:77: ufs2 detection failed.
grub-core/kern/fs.c:55: Detecting ufs1...
grub-core/kern/fs.c:77: ufs1 detection failed.
grub-core/kern/fs.c:55: Detecting udf...
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/fs.c:77: udf detection failed.
grub-core/kern/fs.c:55: Detecting tarfs...
grub-core/kern/fs.c:77: tarfs detection failed.
grub-core/kern/fs.c:55: Detecting squash4...
grub-core/kern/fs.c:77: squash4 detection failed.
grub-core/kern/fs.c:55: Detecting sfs...
grub-core/kern/fs.c:77: sfs detection failed.
grub-core/kern/fs.c:55: Detecting romfs...
grub-core/kern/fs.c:77: romfs detection failed.
grub-core/kern/fs.c:55: Detecting reiserfs...
grub-core/kern/fs.c:77: reiserfs detection failed.
grub-core/kern/fs.c:55: Detecting odc...
grub-core/kern/fs.c:77: odc detection failed.
grub-core/kern/fs.c:55: Detecting ntfs...
grub-core/kern/fs.c:77: ntfs detection failed.
grub-core/kern/fs.c:55: Detecting nilfs2...
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/mapper/isw_ddbeejgcgd_Volume0'
grub-core/kern/fs.c:77: nilfs2 detection failed.
grub-core/kern/fs.c:55: Detecting newc...
grub-core/kern/fs.c:77: newc detection failed.
grub-core/kern/fs.c:55: Detecting minix_be...
grub-core/kern/fs.c:77: minix_be detection failed.
grub-core/kern/fs.c:55: Detecting minix3_be...
grub-core/kern/fs.c:77: minix3_be detection failed.
grub-core/kern/fs.c:55: Detecting minix3...
grub-core/kern/fs.c:77: minix3 detection failed.
grub-core/kern/fs.c:55: Detecting minix2_be...
grub-core/kern/fs.c:77: minix2_be detection failed.
grub-core/kern/fs.c:55: Detecting minix2...
grub-core/kern/fs.c:77: minix2 detection failed.
grub-core/kern/fs.c:55: Detecting minix...
grub-core/kern/fs.c:77: minix detection failed.
grub-core/kern/fs.c:55: Detecting jfs...
grub-core/kern/fs.c:77: jfs detection failed.
grub-core/kern/fs.c:55: Detecting iso9660...
grub-core/kern/fs.c:77: iso9660 detection failed.
grub-core/kern/fs.c:55: Detecting hfsplus...
grub-core/kern/fs.c:77: hfsplus detection failed.
grub-core/kern/fs.c:55: Detecting hfs...
grub-core/kern/fs.c:77: hfs detection failed.
grub-core/kern/fs.c:55: Detecting fat...
grub-core/kern/fs.c:77: fat detection failed.
grub-core/kern/fs.c:55: Detecting ext2...
grub-core/kern/fs.c:77: ext2 detection failed.
grub-core/kern/fs.c:55: Detecting exfat...
grub-core/kern/fs.c:77: exfat detection failed.
grub-core/kern/fs.c:55: Detecting cpiofs...
grub-core/kern/fs.c:77: cpiofs detection failed.
grub-core/kern/fs.c:55: Detecting cpiofs...
grub-core/kern/fs.c:77: cpiofs detection failed.
grub-core/kern/fs.c:55: Detecting btrfs...
grub-core/kern/fs.c:77: btrfs detection failed.
grub-core/kern/fs.c:55: Detecting bfs...
grub-core/kern/fs.c:77: bfs detection failed.
grub-core/kern/fs.c:55: Detecting afs...
grub-core/kern/fs.c:77: afs detection failed.
grub-core/kern/fs.c:55: Detecting affs...
grub-core/kern/fs.c:77: affs detection failed.
grub2-probe: error: unknown filesystem.
Comment 5 Mike Gilbert gentoo-dev 2012-08-10 17:37:29 UTC
Thanks for testing. Please report the issue upstream.

http://www.gnu.org/software/grub/grub-bugs.html
Comment 6 Guillaume BINET 2012-08-10 20:14:56 UTC
For the record : I reported it upstream https://savannah.gnu.org/bugs/?37073
Thx
Comment 7 Guillaume BINET 2013-04-15 16:55:16 UTC
Created attachment 345632 [details]
Modified grub ebuild to get the upstream patch on grub-2.00
Comment 8 Guillaume BINET 2013-04-15 16:57:56 UTC
Created attachment 345634 [details, diff]
Backport of the upstream patch for grub 2.00

With this patch it solved my problem.
The original upstream patch on head is here : https://savannah.gnu.org/bugs/?37073#comment2
The commit on upstream bazaar is here : http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/4858
Comment 9 Mike Gilbert gentoo-dev 2013-04-27 20:56:42 UTC
+*grub-2.00-r3 (27 Apr 2013)
+
+  27 Apr 2013; Mike Gilbert <floppym@gentoo.org> +files/grub-2.00-dmraid.patch,
+  +files/grub-2.00-texinfo.patch, +grub-2.00-r3.ebuild:
+  Resolve infinte-loop in grub-probe #462740 and fix dmraid support #430748.
+  Also fix issue with texinfo-5.1.
+