grub-install doesn't notice that efibootmgr fails, reports success

Bug #1384053 reported by Karl-Philipp Richter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Invoking

    sudo -i
    mount /dev/sdxY /mnt/bla
    cd /mnt/bla
    mount --bind /dev dev
    mount --bind /sys sys
    mount -t proc /proc proc
    mount /dev/sdxB /mnt/boot
    mount /dev/sdxE /mnt/boot/efi
    chroot .
    apt-get install grub-efi
    update-grub
    grub-install /dev/sdx

causes errors due to missing `efivars` with hint to run `modprobe efivars` and then prints `Installation finished. No errors reported.` (can't reproduce exactly right now, but it should be clear which message is meant). That is confusing! The final message should reflect whether errors have been reported or not.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: grub-efi-amd64 2.02~beta2-9ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
Uname: Linux 3.13.0-37-generic x86_64
NonfreeKernelModules: openafs zfs zunicode zavl zcommon znvpair
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Oct 22 08:29:48 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-03-01 (234 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: grub2
UpgradeStatus: Upgraded to trusty on 2014-06-19 (124 days ago)

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
Phillip Susi (psusi)
summary: - grub-install prints "Installation finished, no error reported" although
- errors have been reported when installing grub-efi in chroot of non-EFI
- host
+ grub-install doesn't notice that efibootmgr fails, reports success
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Steve Langasek (vorlon) wrote :

this has been reimplemented, grub-install no longer calls efibootmgr.

Changed in grub2 (Ubuntu):
status: Triaged → 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.