From 5017d9bb1c2df013cf296f0c8ad941776012e0bc Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis Date: Wed, 28 Aug 2024 16:45:58 +0200 Subject: [PATCH] feat: Add Custom bootloader names so pretty_name can be static --- src/libostree/ostree-sysroot-deploy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index d52eecf3..5b1a81fc 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -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)