[Bug 1936857] Re: grub-install: error: efibootmgr: not found.

dann frazier 1936857 at bugs.launchpad.net
Tue Jul 20 19:43:43 UTC 2021


On Tue, Jul 20, 2021 at 07:07:55PM -0000, Dimitri John Ledkov wrote:
> in later releases grub-install has stopped forking to call efibootmgr in
> favor of using an EFI library.
> 
> Does it return non-zero error code? because it should be ignoring
> failure to call efibootmgr. And otherwise grub installation was
> completed.

ubuntu at ubuntu:~$ dpkg-query -W grub2-common
grub2-common    2.02-2ubuntu8.23
ubuntu at ubuntu:~$ sudo grub-install
Installing for arm64-efi platform.
grub-install: error: efibootmgr: not found.
ubuntu at ubuntu:~$ echo $?
1

After installing efibootmgr (to demonstrate it is the only issue):

ubuntu at ubuntu:~$ sudo grub-install
Installing for arm64-efi platform.
Installation finished. No error reported.
ubuntu at ubuntu:~$ echo $?
0

> efibootmgr recommends has been added back in Debian, but not yet in
> Ubuntu. becuase in general it is useful. Previously the dependency was
> on the grub-efi-arm64-bin package Depends: efibootmgr which is not there
> in the binary copies.
> 
> Imho src:grub2 in xenial/bionic should depend on efibootmgr on amd64 &
> arm64, or we should add efibootmgr dep in the grub2-unsigned package.
> 
> Upgrades should not be affected, since efibootmgr will not be removed.
> But fresh installs are affected, like the newly respun cloud-image.

ACK

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1936857

Title:
  grub-install: error: efibootmgr: not found.

Status in grub2 package in Ubuntu:
  New
Status in grub2 source package in Xenial:
  Confirmed
Status in grub2 source package in Bionic:
  Confirmed

Bug description:
  grub-install from 2.02~beta2-36ubuntu3.32 on xenial/arm64 fails with:

  ubuntu at ubuntu:~$ sudo grub-install
  Installing for arm64-efi platform.
  grub-install: error: efibootmgr: not found.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1936857/+subscriptions




More information about the foundations-bugs mailing list