Dominique Leuenberger
0cb28681d1
- change the OS directory in ESP (bsc#1130056) - set the default shim binary for openSUSE/SLE (bsc#1130056) - Link fwupd*.efi.signed to fwupd*.efi as requested by fwupd (bsc#1129466) OBS-URL: https://build.opensuse.org/request/show/689521 OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=47
30 lines
999 B
Diff
30 lines
999 B
Diff
From f8bbcefe3eed253cda0c86a4c2443292beca82ee Mon Sep 17 00:00:00 2001
|
|
From: Gary Lin <glin@suse.com>
|
|
Date: Thu, 28 Mar 2019 15:26:28 +0800
|
|
Subject: [PATCH] Change the path to shim.efi
|
|
|
|
For openSUSE/SLE, we use shim.efi instead of shimx64.efi.
|
|
|
|
Signed-off-by: Gary Lin <glin@suse.com>
|
|
---
|
|
plugins/uefi/fu-uefi-bootmgr.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/plugins/uefi/fu-uefi-bootmgr.c b/plugins/uefi/fu-uefi-bootmgr.c
|
|
index 7bec311..22357d4 100644
|
|
--- a/plugins/uefi/fu-uefi-bootmgr.c
|
|
+++ b/plugins/uefi/fu-uefi-bootmgr.c
|
|
@@ -319,7 +319,8 @@ fu_uefi_bootmgr_bootnext (const gchar *esp_path, FuUefiBootmgrFlags flags, GErro
|
|
return FALSE;
|
|
|
|
/* test to make sure shim is there if we need it */
|
|
- shim_app = fu_uefi_get_esp_app_path (esp_path, "shim", error);
|
|
+ shim_app = g_strdup_printf ("%s/shim.efi",
|
|
+ fu_uefi_get_esp_path_for_os (esp_path));
|
|
if (shim_app == NULL)
|
|
return FALSE;
|
|
if (!g_file_test (shim_app, G_FILE_TEST_EXISTS)) {
|
|
--
|
|
2.21.0
|
|
|