bootspec: store 'root' field in each bootspec entry we load
authorLennart Poettering <lennart@poettering.net>
Mon, 28 Jan 2019 16:57:41 +0000 (17:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2019 11:41:32 +0000 (12:41 +0100)
commit43b736a84bbceabe7cb7588bcc61389e831e6f73
tree845fdbe61ab73b724a10d4b7d5d4c1a6c1b9febe
parent15cb6c98973293d82ab6e27889a90d281b39ed19
bootspec: store 'root' field in each bootspec entry we load

This 'root' field contains the root path of the partition we found the
snippet in. The 'kernel', 'initrd', 'efi', … fields are relative to this
path.

This becomes particularly useful later when we add support for loading
snippets from both the ESP and XBOOTLDR, but already simplifies the code
for us a bit in systemctl.
src/shared/bootspec.c
src/shared/bootspec.h
src/systemctl/systemctl.c