'loadfont unicode' fails in SB-signed EFI image; image and grub-install don't agree on path

Bug #1063602 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Critical
Colin Watson
Quantal
Fix Released
Critical
Colin Watson

Bug Description

The stock grub config does the following:

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
  [...]
fi
if loadfont $font ; then
  [...]

'loadfont unicode' fails in the SecureBoot EFI image with this error:
  error: file `/EFI/ubuntu/fonts/unicode.pf2' not found.

From what I can tell, this is because grubx64.efi (from debian/rules) is built with -p /EFI/ubuntu, but grub-install copies the font to /boot/grub/fonts (which of course is not on the EFI system partition). In the non-SB image generated by grub-install, the prefix is set to /boot/grub, so there's no problem; but for the SB image, we don't know where /boot/grub will be. Either grub.cfg has to be changed to search for such files in the SB case, or the fonts (and locales) need to be installed to /efi/ubuntu and not just to /boot/grub.

Colin Watson (cjwatson)
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Colin Watson (cjwatson)
Changed in grub2 (Ubuntu Quantal):
milestone: none → ubuntu-12.10
Colin Watson (cjwatson)
Changed in grub2 (Ubuntu Quantal):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 2.00-7ubuntu4

---------------
grub2 (2.00-7ubuntu4) quantal; urgency=low

  [ Colin Watson ]
  * Install signed images if UEFI Secure Boot is enabled (LP: #1063602).

  [ Steve Langasek ]
  * debian/patches/ubuntu_uefi_firmware_setup.patch: Output a menu entry
    for firmware setup on UEFI FastBoot systems.
 -- Colin Watson <email address hidden> Mon, 08 Oct 2012 12:16:40 +0100

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.