gcdx64.efi should handle grub.cfg in /efi/boot.

Bug #1468111 reported by Mathieu Trudel-Lapierre
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned
Vivid
Critical
Unassigned
grub2-signed (Ubuntu)
Undecided
Unassigned
Vivid
High
Unassigned

Bug Description

TEST CASE:
1. create ubuntu snappy image from 15.04/edge
2. enable UEFI boot in the bios
3. verify that it fails to boot and drops into a grub shell

4. create ubuntu snappy image from 15.04/edge that got build with vivid-proposed
5. boot and verify that uefi boot works this time.

Snappy images have grub.cfg in $cmdpath/efi/boot, which then loads a better /efi/ubuntu/grub/grub.cfg which will look for the real file on the filesystem.

Snappy personal image built as such currently fails to boot:
sudo ubuntu-device-flash personal rolling --channel=edge --output image.img

GRUB fails to find /boot/ which is the typical prefix, and fails to find /.disk/info which then really breaks $prefix.

Workaround is to handle grub.cfg being in $cmdpath directly (in other words, in /efi/boot).

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Proposed fix.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.02~beta2-26ubuntu1

---------------
grub2 (2.02~beta2-26ubuntu1) wily; urgency=medium

  * debian/build-efi-images: look for grub.cfg in $cmdpath too in gcdx64.efi,
    to simplify embedded scenarios: putting a grub.cfg snippet that loads the
    right "real" grub.cfg can be useful. (LP: #1468111)

 -- Mathieu Trudel-Lapierre <email address hidden> Tue, 23 Jun 2015 17:27:18 -0400

Changed in grub2 (Ubuntu):
status: New → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

I uploaded this to vivid-proposed now.

Changed in grub2 (Ubuntu Vivid):
status: New → In Progress
importance: Undecided → Critical
Michael Vogt (mvo)
description: updated
Revision history for this message
Colin Watson (cjwatson) wrote : Please test proposed package

Hello Mathieu, or anyone else affected,

Accepted grub2 into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2/2.02~beta2-22ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in grub2 (Ubuntu Vivid):
status: In Progress → Fix Committed
tags: added: verification-needed
Michael Vogt (mvo)
Changed in grub2-signed (Ubuntu Vivid):
status: New → In Progress
importance: Undecided → High
Changed in grub2-signed (Ubuntu):
status: New → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

Hello Mathieu, or anyone else affected,

Accepted grub2-signed into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grub2-signed/1.46.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in grub2-signed (Ubuntu Vivid):
status: In Progress → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

I tested this fix with the snappy 15.04/edge r209 on a UEFI system and can confirm that the previous version did not work but the new version does fix the problem and boots as expected.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.02~beta2-22ubuntu1.2

---------------
grub2 (2.02~beta2-22ubuntu1.2) vivid-proposed; urgency=low

  [ Mathieu Trudel-Lapierre ]
  * debian/build-efi-images: look for grub.cfg in $cmdpath too in gcdx64.efi,
    to simplify embedded scenarios: putting a grub.cfg snippet that loads the
    right "real" grub.cfg can be useful. (LP: #1468111)

 -- Michael Vogt <email address hidden> Mon, 12 Oct 2015 15:36:51 +0200

Changed in grub2 (Ubuntu Vivid):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for grub2 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2-signed - 1.46.2

---------------
grub2-signed (1.46.2) vivid; urgency=medium

  * Rebuild against grub-efi-amd64 2.02~beta2-22ubuntu1.2 (LP:
    #1468111).

 -- Michael Vogt <email address hidden> Mon, 12 Oct 2015 15:56:47 +0200

Changed in grub2-signed (Ubuntu Vivid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers