fwupd/fwupd-jscSLE-11766-close-efidir-leap-gap.patch
Dominique Leuenberger 20ce0a326e - Update to version 2.0.5:
+ This release adds the following features:
    - Allow emulating devices reading EFI keys
    - Allow skipping device tests by CPU architecture
  + This release fixes the following bugs:
    - Cleanup Dell kestrel devices when disconnected
    - Correctly build binary EFI_SIGNATURE_LIST objects
    - Do not allow dbx updates when no ESP was found
    - Ignore BootXXXX entries that do not exist when checking the dbx
    - Ignore EFI binaries that are zero-sized, or not well formed
    - Inhibit dbx updates if snapd is not available when using Ubuntu-style FDE
    - Only match the device checksum if the protocol matches
    - Raise authentication requirements for emulation-load
    - Request to upload failed reports for install/downgrade too
    - Use the kernel architecture when building the dbx instance ID
    - Write sbatlevel to PE/COFF files correctly
  + This release adds support for the following hardware:
    - More ELAN Fingerprint readers
    - Star Labs StarLite Magnetic Keyboard

OBS-URL: https://build.opensuse.org/package/show/Base:System/fwupd?expand=0&rev=204
2025-02-03 14:22:56 +00:00

23 lines
935 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
@@ -251,6 +251,7 @@
g_autofree gchar *full_systemd_path = NULL;
g_autoptr(GError) error_local = NULL;
g_autoptr(GHashTable) os_release = NULL;
+ g_auto(GStrv) split = NULL;
/* distro (or user) is using systemd-boot */
systemd_path = g_build_filename("EFI", "systemd", NULL);
@@ -262,6 +263,9 @@
os_release = fwupd_get_os_release(&error_local);
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);
}