bugGNU GRUB - Bugs: bug #29697, grub2 is unable to fprobe devices...

 
 

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

bug #29697: grub2 is unable to fprobe devices when using lvm

Submitter:  Dennis Gilmore <dgilmore>
Submitted:  Wed 28 Apr 2010 02:31:02 AM UTC
Votes: 2
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  1.98
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 29 May 2010 01:02:29 AM UTC, comment #5: 

You're right, it has been fixed in bzr. That was quick! Thanks, Colin Watson.

I think my patch inspired the fix in bazaar, but I'm not sure. The fix in bazaar doesn't take into account how deep into the /dev directory the (recursive) find_root_device() function is.

Perhaps it doesn't seem important, but I think it is. Symbolic links in /dev/mapper/ will now be followed. That's good. But symbolic links in /dev/hello/mapper/ will also be followed. So will symbolic links in /dev/hello/future/bugs/mapper/.

I liked my patch.

Chris Coleman <chrsclmn>
Fri 28 May 2010 05:59:47 PM UTC, comment #4: 

This should be fixed in bzr. Please upgrade.

Vladimir Serbinenko <phcoder>
Group administrator
Fri 28 May 2010 05:43:14 PM UTC, comment #3: 

I've attached a revision of my patch (grub-1.98-follow-dev-mapper-symlinks.patch). I removed the call to realpath() and used stat() instead of lstat().

I bodged the attachment comment. My finger slipped.

Chris Coleman <chrsclmn>
Fri 28 May 2010 05:38:45 PM UTC, comment #2: 

This was reported in Gentoo Linux as http://bugs.gentoo.org/show_bug.cgi?id=321569

I've attached my workaround: grub-1.98-follow-dev-mapper-symlinks.patch

Chris Coleman <chrsclmn>
Fri 14 May 2010 11:53:56 AM UTC, comment #1: 

This bug was reported in Arch Linux as http://bugs.archlinux.org/task/18734

Daniel Appelt <hilbertgeist>
Wed 28 Apr 2010 02:31:02 AM UTC, original submission:  

this was reported to debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542435

I am seeing this issue on Fedora with 1.97.2 and 1.98

devices in /dev/mapper/ show up in the format
lrwxrwxrwx.  1 root root      7 Apr 27 11:36 VolGroup00-LogVol00 -> ../dm-0
lrwxrwxrwx.  1 root root      7 Apr 27 11:36 VolGroup00-LogVol01 -> ../dm-2
lrwxrwxrwx.  1 root root      7 Apr 27 11:36 VolGroup00-LogVol02 -> ../dm-1

1.98 shows the following behaviour
grub2-probe /
grub2-probe: error: cannot find a device for / (is /dev mounted?).

1.97.2 show the following behaviour
 grub2-probe /
grub-probe: error: cannot find a device for /.


the symlinks are created by udev rules provided by upstream lvm

Dennis Gilmore <dgilmore>

 

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

Attached Files
file #20646:  grub-1.98-follow-dev-mapper-symlinks.patch added by chrsclmn (2KiB - application/octet-stream - fo)
file #20642:  grub-1.98-follow-dev-mapper-symlinks.patch added by chrsclmn (2KiB - application/octet-stream - follow symbolic links in /dev/mapper/)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by chrsclmn (Voted in favor of this item)
  • -email is unavailable- added by chrsclmn (Updated the item)
  • -email is unavailable- added by hilbertgeist (Posted a comment)
  • -email is unavailable- added by hilbertgeist (Voted in favor of this item)
  • -email is unavailable- added by dgilmore (Submitted the item)
  •  

    There are 2 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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-27 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2010-05-28 chrsclmn Carbon-Copy- Added chrsclmn
    2010-05-28 chrsclmn Attached File- Added grub-1.98-follow-dev-mapper-symlinks.patch, #20646
    2010-05-28 chrsclmn Attached File- Added grub-1.98-follow-dev-mapper-symlinks.patch, #20642
    2010-05-14 hilbertgeist Carbon-Copy- Added hilbertgeist

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code