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)

Submitted by:  Ian Dall <iandall>
Submitted on:  Wed 20 Apr 2011 10:38:47 PM UTC  
 
Category: InstallationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: Colin Watson <cjwatson>Originator Name: Ian Dall
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: 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>
Project 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>
Project MemberIn charge of this item.
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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cjwatson (Updated the item)
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by iandall (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 0 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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 May 2011 09:59:00 AM UTCphcoderStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 21 Apr 2011 09:37:24 AM UTCcjwatsonStatusConfirmed=>Ready For Test
    Thu 21 Apr 2011 09:31:00 AM UTCcjwatsonStatusNone=>Confirmed
      Assigned toNone=>cjwatson

    Back to the top


    Powered by Savane 3.1-cleanup1