bootctl: show unique titles

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-11-07 15:14:23 +01:00
parent 7e87c7d914
commit 64f05708cf
3 changed files with 77 additions and 2 deletions
+2 -2
View File
@@ -461,7 +461,7 @@ static int status_entries(const char *esp_path, sd_id128_t partition) {
else {
const BootEntry *e = &config.entries[config.default_entry];
printf(" title: %s\n", strna(e->title));
printf(" title: %s\n", boot_entry_title(e));
if (e->version)
printf(" version: %s\n", e->version);
if (e->kernel)
@@ -1182,7 +1182,7 @@ static int verb_list(int argc, char *argv[], void *userdata) {
printf(" title: %s%s%s%s%s%s\n",
ansi_highlight(),
strna(e->title),
boot_entry_title(e),
ansi_normal(),
ansi_highlight_green(),
n == config.default_entry ? " (default)" : "",