mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-11 20:58:45 +03:00
feat: Add Custom bootloader names so pretty_name can be static
This commit is contained in:
parent
2b01c93cd9
commit
5017d9bb1c
@ -1999,7 +1999,9 @@ install_deployment_kernel (OstreeSysroot *sysroot, int new_bootversion,
|
|||||||
|
|
||||||
g_autoptr (GHashTable) osrelease_values = parse_os_release (contents, "\n");
|
g_autoptr (GHashTable) osrelease_values = parse_os_release (contents, "\n");
|
||||||
/* title */
|
/* 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)
|
if (val == NULL)
|
||||||
val = g_hash_table_lookup (osrelease_values, "ID");
|
val = g_hash_table_lookup (osrelease_values, "ID");
|
||||||
if (val == NULL)
|
if (val == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user