forked from pool/fwupd
Dominique Leuenberger
d7f89a83fb
Yet a new upstream version OBS-URL: https://build.opensuse.org/request/show/1011134 OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=123
19 lines
861 B
Diff
19 lines
861 B
Diff
Index: fwupd-1.8.5/plugins/uefi-capsule/fu-uefi-common.c
|
|
===================================================================
|
|
--- fwupd-1.8.5.orig/plugins/uefi-capsule/fu-uefi-common.c
|
|
+++ fwupd-1.8.5/plugins/uefi-capsule/fu-uefi-common.c
|
|
@@ -233,9 +233,13 @@ fu_uefi_get_esp_path_for_os(FuDevice *de
|
|
g_autofree gchar *esp_path = NULL;
|
|
g_autoptr(GError) error_local = NULL;
|
|
g_autoptr(GHashTable) os_release = fwupd_get_os_release(&error_local);
|
|
+ g_auto(GStrv) split = NULL;
|
|
/* try to lookup /etc/os-release ID key */
|
|
if (os_release != NULL) {
|
|
os_release_id = g_hash_table_lookup(os_release, "ID");
|
|
+ /* 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 {
|
|
g_debug("failed to get ID: %s", error_local->message);
|
|
}
|