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

Submitted by:  Dennis Gilmore <dgilmore>
Submitted on:  Wed 28 Apr 2010 02:31:02 AM UTC  
Votes:  2  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 1.98Reproducibility: 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>
Project 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>

 

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
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by chrsclmn (Voted in favor of this item)
  • -unavailable- added by chrsclmn (Updated the item)
  • -unavailable- added by hilbertgeist (Posted a comment)
  • -unavailable- added by hilbertgeist (Voted in favor of this item)
  • -unavailable- added by dgilmore (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 2 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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 27 Aug 2010 02:04:08 AM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 28 May 2010 05:39:25 PM UTCchrsclmnCarbon-Copy-=>Added chrsclmn
    Fri 28 May 2010 05:34:00 PM UTCchrsclmnAttached File-=>Added grub-1.98-follow-dev-mapper-symlinks.patch, #20646
    Fri 28 May 2010 06:26:35 AM UTCchrsclmnAttached File-=>Added grub-1.98-follow-dev-mapper-symlinks.patch, #20642
    Fri 14 May 2010 11:47:17 AM UTChilbertgeistCarbon-Copy-=>Added hilbertgeist

    Back to the top


    Powered by Savane 3.1-cleanup1