feat: Add Custom bootloader names so pretty_name can be static

This commit is contained in:
Antheas Kapenekakis 2024-08-28 16:45:58 +02:00
parent 2b01c93cd9
commit 5017d9bb1c
No known key found for this signature in database
GPG Key ID: EF34000BBBE32D2A

View File

@ -1999,7 +1999,9 @@ install_deployment_kernel (OstreeSysroot *sysroot, int new_bootversion,
g_autoptr (GHashTable) osrelease_values = parse_os_release (contents, "\n");
/* title */
const char *val = g_hash_table_lookup (osrelease_values, "PRETTY_NAME");
const char *val = g_hash_table_lookup (osrelease_values, "BOOTLOADER_NAME");
if (val == NULL)
val = g_hash_table_lookup (osrelease_values, "PRETTY_NAME");
if (val == NULL)
val = g_hash_table_lookup (osrelease_values, "ID");
if (val == NULL)