2023-12-04 14:01:59 +01:00
|
|
|
Index: fwupd-1.9.10/plugins/uefi-capsule/fu-uefi-common.c
|
2021-12-01 12:12:43 +01:00
|
|
|
===================================================================
|
2023-12-04 14:01:59 +01:00
|
|
|
--- fwupd-1.9.10.orig/plugins/uefi-capsule/fu-uefi-common.c
|
|
|
|
+++ fwupd-1.9.10/plugins/uefi-capsule/fu-uefi-common.c
|
|
|
|
@@ -231,9 +231,13 @@ fu_uefi_get_esp_path_for_os(void)
|
2020-09-03 17:32:22 +02:00
|
|
|
g_autofree gchar *esp_path = NULL;
|
|
|
|
g_autoptr(GError) error_local = NULL;
|
2021-12-01 12:12:43 +01:00
|
|
|
g_autoptr(GHashTable) os_release = fwupd_get_os_release(&error_local);
|
2020-09-03 17:32:22 +02:00
|
|
|
+ g_auto(GStrv) split = NULL;
|
|
|
|
/* try to lookup /etc/os-release ID key */
|
|
|
|
if (os_release != NULL) {
|
2021-12-01 12:12:43 +01:00
|
|
|
os_release_id = g_hash_table_lookup(os_release, "ID");
|
2020-09-03 17:32:22 +02:00
|
|
|
+ /* Overide os_release_id for SLE and openSUSE */
|
|
|
|
+ split = g_strsplit (g_hash_table_lookup (os_release, "NAME"), " ", 2);
|
|
|
|
+ os_release_id = g_ascii_strdown (split[0], -1);
|
|
|
|
} else {
|
2021-12-01 12:12:43 +01:00
|
|
|
g_debug("failed to get ID: %s", error_local->message);
|
2020-09-03 17:32:22 +02:00
|
|
|
}
|