bugGNU GRUB - Bugs: bug #43276, grub_machine_get_bootlocation...

 
 

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

bug #43276: grub_machine_get_bootlocation mishandles root of device

Submitted by:  Andreas Schwab <schwab>
Submitted on:  Mon 22 Sep 2014 12:21:30 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: Andrei Borzenkov <arvidjaar>Originator Name: 
Open/Closed: ClosedRelease: 
Release: Git masterReproducibility: Every Time
Planned Release: None

Sun 07 Dec 2014 04:59:42 PM UTC, comment #4:

Commit 7e7293d745ef7c0a13d8cbf12f474843edfdd0ab already fixed it.

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 07 Dec 2014 10:19:41 AM UTC, comment #3:

I'm not sure I understand your comment. You cannot reproduce the problem anymore or grub_efi_get_filename returns names without leading "/"?

Andrei Borzenkov <arvidjaar>
Project MemberIn charge of this item.
Tue 18 Nov 2014 03:17:39 PM UTC, comment #2:

It didn't do that when I last looked at it.

Andreas Schwab <schwab>
Tue 18 Nov 2014 01:56:26 PM UTC, comment #1:

Could you give more details? grub_efi_get_filename() will always prepend '/'; so for files in root directory we end up with "/file" and set the very first "/" to '\0'. Which effectively is what your patch does.

If not, we probably have problem with grub_efi_get_filename() and need to fix it. Full device path to loaded image would be interesting.

Andrei Borzenkov <arvidjaar>
Project MemberIn charge of this item.
Mon 22 Sep 2014 12:21:30 PM UTC, original submission:

If grub.efi was loaded from the root of a device then the default prefix contains the full name of the loaded image, including grub.efi. That means it cannot find a grub.cfg file in the same directory.

Andreas Schwab <schwab>

 

Attached Files
file #32163:  0001-Handle-boot-location-in-root-of-device.patch added by schwab (741B - text/x-patch - Handle boot location in root of device)

 

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 arvidjaar (Posted a comment)
  • -unavailable- added by schwab (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
    Sun 07 Dec 2014 04:59:42 PM UTCphcoderStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Tue 18 Nov 2014 01:56:26 PM UTCarvidjaarStatusNone=>Need Info
      Assigned toNone=>arvidjaar
    Mon 22 Sep 2014 12:21:30 PM UTCschwabAttached File-=>Added 0001-Handle-boot-location-in-root-of-device.patch, #32163

    Back to the top


    Powered by Savane 3.1-cleanup1