modules/bootloader: Use the correct names for the shim binaries

Ever since signed shim binaries for multiple architectures became
available, the shim binaries installed in Linux distributions have
been renamed to include the EFI architecture in the binary names.

This started in Fedora, but is now used in openSUSE and Ubuntu too.

Reference for shim binary names comes from shim spec in Fedora:

d8c3c8e392/f/shim.spec (_23-32)
This commit is contained in:
Neal Gompa 2021-01-30 05:37:41 -05:00
parent 1542bad224
commit e56bdd019f
2 changed files with 5 additions and 3 deletions

View File

@ -38,6 +38,7 @@ and moral support from (alphabetically by first name or nickname):
- Kevin Kofler - Kevin Kofler
- Kyle Robertze - Kyle Robertze
- Lisa Vitolo - Lisa Vitolo
- Neal Gompa
- n3rdopolis - n3rdopolis
- Philip Müller - Philip Müller
- Ramon Buldó - Ramon Buldó

View File

@ -14,6 +14,7 @@
# SPDX-FileCopyrightText: 2017-2019 Adriaan de Groot <groot@kde.org> # SPDX-FileCopyrightText: 2017-2019 Adriaan de Groot <groot@kde.org>
# SPDX-FileCopyrightText: 2017 Gabriel Craciunescu <crazy@frugalware.org> # SPDX-FileCopyrightText: 2017 Gabriel Craciunescu <crazy@frugalware.org>
# SPDX-FileCopyrightText: 2017 Ben Green <Bezzy1999@hotmail.com> # SPDX-FileCopyrightText: 2017 Ben Green <Bezzy1999@hotmail.com>
# SPDX-FileCopyrightText: 2021 Neal Gompa <ngompa13@gmail.com>
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
# #
# Calamares is Free Software: see the License-Identifier above. # Calamares is Free Software: see the License-Identifier above.
@ -372,9 +373,9 @@ def install_secureboot(efi_directory):
install_efi_directory = install_path + efi_directory install_efi_directory = install_path + efi_directory
if efi_word_size() == "64": if efi_word_size() == "64":
install_efi_bin = "shim64.efi" install_efi_bin = "shimx64.efi"
else: elif efi_word_size() == "32":
install_efi_bin = "shim.efi" install_efi_bin = "shimia32.efi"
# Copied, roughly, from openSUSE's install script, # Copied, roughly, from openSUSE's install script,
# and pythonified. *disk* is something like /dev/sda, # and pythonified. *disk* is something like /dev/sda,