Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
fwupd.24642
fwupd-jscSLE-11766-close-efidir-leap-gap.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fwupd-jscSLE-11766-close-efidir-leap-gap.patch of Package fwupd.24642
diff --git a/plugins/uefi/fu-uefi-common.c b/plugins/uefi/fu-uefi-common.c index fa7df3ea..e0e2db0e 100644 --- a/plugins/uefi/fu-uefi-common.c +++ b/plugins/uefi/fu-uefi-common.c @@ -247,8 +247,12 @@ fu_uefi_get_esp_path_for_os (const gchar *esp_path) #ifndef EFI_OS_DIR g_autoptr(GError) error_local = NULL; g_autoptr(GHashTable) os_release = fwupd_get_os_release (&error_local); + g_auto(GStrv) split = NULL; 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); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor