[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #57381] EFI image with wrong prefix when bootload-id is specified
From: |
Adam Li |
Subject: |
[bug #57381] EFI image with wrong prefix when bootload-id is specified |
Date: |
Sun, 8 Dec 2019 00:23:25 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0 |
URL:
<https://savannah.gnu.org/bugs/?57381>
Summary: EFI image with wrong prefix when bootload-id is
specified
Project: GNU GRUB
Submitted by: c0redumb
Submitted on: Sun 08 Dec 2019 05:23:24 AM UTC
Category: None
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name: Adam Li
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release:
Release: 2.02
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
This is with Grub 2.02 that comes with Ubuntu 18.04.
When --bootloader-id is specified when running "grub-install" with target
x86_64-efi (for example, --bootloader-id myboot), the efi image file
(grubx64.efi) is generated and put in folder /EFI/myboot/ on ESP. The initial
load configure file (grub.cfg) is also put in the same folder (/EFI/myboot/ on
ESP).
However, the efi image file is generated with prefix of "/EFI/ubuntu". This
can be verified by run "strings grubx64.efi" on the efi image file.
As a result, the grub efi file can not find the initial configuration file and
falls back to the command interface. It is trying to find it at esp/EFI/ubuntu
(based on the prefix), but indeed it should be at esp/EFI/myboot.
I believe this should be an easy fix by looking at how bootloader_id and
distributor_id was use in grub-install.c. But I had trouble building the grub
project from git (that's probably another story). Some one on your team who is
more familiar with the code could make that change easily.
Thanks.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57381>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #57381] EFI image with wrong prefix when bootload-id is specified,
Adam Li <=