bootctl: show more information about boot entry state in list
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Feb 2022 20:15:22 +0000 (21:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Feb 2022 14:44:07 +0000 (15:44 +0100)
commitbb6820576870d0b38dbf9f6e489b126558fc87d9
treef35bce210c37f8021729ce7bb2fea40fd722e069
parenta78e472dfd7832a13e3d52797e672d4e77fc2a49
bootctl: show more information about boot entry state in list

Let's improve display of boot entries and show what type they have (i.e.
boot loader spec type 1, or type 2, or auto-discovered or reported by
boot loader), and in particular mark entries the boot loader discovered
but we can't find (i.e. that likely vanished, or possibly couldn't be
found due to a misconfiguration) and that the boot loader didn't find
but we see (which are new, or possibly also the result of
misconfiguraiton).

This is supposed to be a replacement for #22161, but instead of hiding
vanished entries, highlights them, which I think is more appropriate for
a low-level tool such bootctl.

Replaces: #22161 #22398
src/boot/bootctl.c
src/login/logind-dbus.c
src/shared/bootspec.c
src/shared/bootspec.h