bootctl: don't trip up in "bootctl status" when we can't find the ESP because of...
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Dec 2017 21:15:03 +0000 (22:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Dec 2017 22:18:56 +0000 (23:18 +0100)
commitecec2a5d7a6b5259beffba02771945bc46ddfd06
tree9dec6c863680bc0e323b43bd0c6566f568d3260a
parent5caa3167ff98a29c1ef9bbe9c4fddf6aa1cd8888
bootctl: don't trip up in "bootctl status" when we can't find the ESP because of lack of privilges

On my system the boot and EFI partitions are protected, hence "bootctl
status" can't find the ESP, and then the tool continues with arg_path ==
NULL, which it really should not. Handle these cases, and simply
suppress all output that needs arg_path.
src/boot/bootctl.c