]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bootspec.c
bootspec: introduce new helper boot_entries_load_config_auto()
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Mar 2019 16:52:17 +0000 (17:52 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2019 15:50:58 +0000 (16:50 +0100)
commiteea4ce1ec716948c1f67d9c541de0c77082401a7
tree05d468f7549772fdcf9a7f21c955bb6a8cd1e0b4
parentdba33c4a2c53f1dca6edc1661b608f2c52ba6465
bootspec: introduce new helper boot_entries_load_config_auto()

It's a simple wrapper around boot_entries_load_config(), but determines
the ESP/XBOOTLDR paths automatically at first. Also, it looks for a path
/run/boot-loader-entries/ and loads the entries from there if it
exists. This is supposed to be a hook for other boot loaders to make our
tools aware of their own entries.
src/shared/bootspec.c
src/shared/bootspec.h