Skip to content

Commit 1baa52e

Browse files
committed
Backport Install efibootmgr before updating Ubuntu OS packages
This step is needed to unblock the ubuntu18 arm build that is failing during the update of the `grub-efi-arm64` with the error: ``` Setting up grub-efi-arm64 (2.04-1ubuntu47.4) ... Installing for arm64-efi platform. grub-install: error: efibootmgr: not found. ``` This is a known issue: https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1936857 The discarded alternative is to exclude some packages from the update: ``` sudo apt-mark hold grub-efi-arm64 grub-efi-arm64-bin grub-efi-arm64-signed ``` Signed-off-by: chenwany <chenwany@amazon.com>
1 parent e99eb73 commit 1baa52e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

recipes/update_packages.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
command "yum -y update && package-cleanup -y --oldkernels --count=1"
2222
end
2323
when 'debian'
24+
execute 'install-efibootmanager' do # temporary workaround to solve https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1936857
25+
command "apt-get -y install efibootmgr"
26+
only_if { arm_instance? }
27+
end
2428
apt_update
2529
execute 'apt-upgrade' do
2630
command "DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" --with-new-pkgs upgrade && apt-get autoremove -y"

0 commit comments

Comments
 (0)