bootspec: move augmentation of loader-discovered entries into bootspec.c
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2019 17:35:26 +0000 (18:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2019 15:50:58 +0000 (16:50 +0100)
commit93f14ce28d8477ad70ba6a60299b84af794e18b0
tree5f1184738ebd9fa92bbd1939bb722d904989ef3f
parent5b1da1ba6da432dc6b120f4ad438aa4a360b2df7
bootspec: move augmentation of loader-discovered entries into bootspec.c

Previously, bootctl would show boot loader entries discovered by the
boot loader which couldn't found locally separately in the output.

Let's move this code into bootspec.c, and beef it up a bit. This way we
can use it later on for logind, and correctly show automatically
discovered windows/macos entries too.
src/boot/bootctl.c
src/shared/bootspec.c
src/shared/bootspec.h