openSUSE / perl-bootloader

Perl modules for configuring various boot loaders
GNU General Public License v2.0
11 stars 18 forks source link

UEFI: update also default location, if it is controlled by SUSE (bsc#1210799, bsc#1201399) #148

Closed wfeldt closed 1 year ago

wfeldt commented 1 year ago

Task

Port https://github.com/openSUSE/perl-bootloader/pull/147 to Tumbleweed/master.

Original problem

On UEFI systems there are two locations grub is installed in:

  1. in a per-distribution directory (e.g. /EFI/opensuse) and
  2. the default location as per UEFI spec (EFI/boot<archstring>.efi)

Updating grub on UEFI systems should update both locations. shim does this already. This patch does the same on non-secure boot systems: the default location is updated if it is signed by SUSE.