SHA256
1
0
forked from pool/fwupd
fwupd/fwupd-jscSLE-11766-close-efidir-leap-gap.patch
Dominique Leuenberger eb179be8a1 Accepting request 1130755 from home:polslinux:branches:Base:System
- Update to version 1.9.10:
  + This release adds the following features:
    - Add support for not_hardware requirements
    - Add support for loongarch64
    - Add support for per-release priority attributes
    - Make USB claim retry count configurable across devices
  + This release fixes the following bugs:
    - Compare the HID report value when checking for duplicates
    - Consider the component priority when installing composite updates
    - Deploy the CCGX firmware correctly the first time
    - Do not export the 'main-system-firmware' and 'cpu' GUIDs
    - Enforce fwupd version requirements client side
    - Fix Genesys 'failed to get static tool info from device' error
    - Fix potential 'dereference before null check' in ccmx-dmc
    - Fix the 'already registered private FuMmDevice flag with value' warning
    - Fix the 'assertion backend_id != NULL failed' runtime warning
    - Fix Wacom USB device emulation by recording the composite phases
    - Generate generic request message text where possible
    - Hide HTTP passwords in fwupd debugging logs
    - Let the client know what interaction is expected
    - Make all critical warnings into backtraces for non-release builds
    - Never obsolete the wrong HSI attribute
    - Never show a HSI index that is impossible
    - Only apply fastboot plugin to modem devices supporting fastboot
    - Only send interactive requests when the sender is alive
    - Remove the now-obsolete Synaptics MST cascade device scanning
    - Replace the Redfish KCS user if required
    - Restrict mediatek-scaler devices on specific hardware only
    - Skip any recovery partitions when detecting ESP

OBS-URL: https://build.opensuse.org/request/show/1130755
OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=156
2023-12-04 13:01:59 +00:00

19 lines
857 B
Diff

Index: fwupd-1.9.10/plugins/uefi-capsule/fu-uefi-common.c
===================================================================
--- 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)
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);
}