]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Improve EFISTUB name and version detection.
authorSpencer Michaels <sxmichaels@gmail.com>
Wed, 6 Nov 2019 05:28:05 +0000 (21:28 -0800)
committerSpencer Michaels <sxmichaels@gmail.com>
Tue, 19 Nov 2019 06:59:51 +0000 (22:59 -0800)
commit10d0024a07c8a919a5637c1295d26145fde7cd56
tree8cce3059bc782973809faa721505eba96207140a
parent6cd12ebcfe459466257ea63022a32515d756e719
boot: Improve EFISTUB name and version detection.

Make two minor cosmetic changes to how config_entry_add_linux() extracts
OS information from the embedded /etc/os-release in EFISTUB binaries.
This increases the detail of information available to the user for
EFISTUB entries.

* entry->version, which was previously always null, is now set to the
value of VERSION, or VERSION_ID, or BUILD_ID (preferred in that order).
* entry->title, which was previously set to the value of PRETTY_NAME, can
now fall back to NAME or ID if PRETTY_NAME is not present. In that case,
NAME is preferred over ID.
src/boot/efi/boot.c