bugGNU GRUB - Bugs: bug #33133, grub-probe can't find device...

 
 

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

bug #33133: grub-probe can't find device (regression)

Submitter:  Ian Dall <iandall>
Submitted:  Wed 20 Apr 2011 10:38:47 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  cjwatson Originator Name:  Ian Dall
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 05 May 2011 09:59:00 AM UTC, comment #4: 

No response to either info request or retest request and we have reasons to think it's fixed. Closing

Vladimir Serbinenko <phcoder>
Group administrator
Thu 21 Apr 2011 09:37:24 AM UTC, comment #3: 

Thanks for reporting this.  Can you retest with r3231?

2011-04-21  Colin Watson  <cjwatson@ubuntu.com>

        * grub-core/kern/emu/getroot.c
        (grub_find_root_device_from_mountinfo): Remove non-virtual-device
        test that was incorrectly reintroduced in r3214.
        Reported by: Ian Dall.  Fixes Savannah bug #33133.

Colin Watson <cjwatson>
Group Member
Thu 21 Apr 2011 08:01:52 AM UTC, comment #2: 

When grub_find_root_device_from_mountinfo fails we revert to old variant. What do
stat /tmp/root/boot
and
ls -l /dev/sdd1
say?

Vladimir Serbinenko <phcoder>
Group administrator
Wed 20 Apr 2011 11:19:37 PM UTC, comment #1: 

More precisely, the problem seems to be in grub_find_root_device_from_mountinfo().

Ian Dall <iandall>
Wed 20 Apr 2011 10:38:47 PM UTC, original submission:  

With current trunk, grub-probe can't determine the device for the following use case:

I have a usb stick mounted on /tmp/root I am using the command

   grub-probe -v --target=device /tmp/root/boot

which returns:

   cannot find a device for /tmp/root/boot (is /dev mounted?)

This works in version 1.98 where it returns /dev/sdd1.

The issue appears to have been introduced by  be in grub/grub-core/kern/emu/getroot.c:grub_guess_root_device().

This seems to be a regression introduced by revision 3214.

Ian Dall <iandall>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cjwatson (Updated the item)
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by iandall (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
    2011-05-05 phcoder StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2011-04-21 cjwatson StatusConfirmed Ready For Test
    2011-04-21 cjwatson StatusNone Confirmed
        Assigned toNone cjwatson

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code