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

Submitter:  Andreas Schwab <schwab>
Submitted:  Mon 22 Sep 2014 12:21:30 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  arvidjaar Originator Name: 
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

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

Commit 7e7293d745ef7c0a13d8cbf12f474843edfdd0ab already fixed it.

Vladimir Serbinenko <phcoder>
Group 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>
Group Member
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>
Group Member
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>

 

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

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
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by schwab (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
    2014-12-07 phcoder StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2014-11-18 arvidjaar StatusNone Need Info
        Assigned toNone arvidjaar
    2014-09-22 schwab Attached File- Added 0001-Handle-boot-location-in-root-of-device.patch, #32163

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code