fwupd/fwupd-jscSLE-11766-close-efidir-leap-gap.patch
Dominique Leuenberger e01dba752b - Update to version 1.9.25:
+ This release fixes the following bugs:
    - Fix checking new Synaptics MST firmware size
    - Make another ModemManager instance ID visible for firmware
      matching
    - Never set a zero-length device name when matching the vendor
      name
    - Recalculate the device supported flag when reparenting
      devices
    - Reduce idle power consumption of paired logitech-hidpp
      devices
    - Retry the open action to fix BC901 NVMe reload
  + This release adds support for the following hardware:
    - Algoltek devices supporting sector erase
    - Dell K2 dock
    - Intel USB4 hub 5787
    - More MediaTek scaler devices
    - Nordic HID devices supporting DFUv1

OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=193
2024-09-25 09:12:10 +00:00

19 lines
857 B
Diff

Index: fwupd-1.9.14/plugins/uefi-capsule/fu-uefi-common.c
===================================================================
--- fwupd-1.9.14.orig/plugins/uefi-capsule/fu-uefi-common.c
+++ fwupd-1.9.14/plugins/uefi-capsule/fu-uefi-common.c
@@ -235,9 +235,13 @@ fu_uefi_get_esp_path_for_os(void)
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);
}