machine-image: extend search path
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Apr 2018 09:08:54 +0000 (11:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 May 2018 15:01:57 +0000 (17:01 +0200)
commitace9ab19ffa321a84ddce466e90b8f3ba97e4d7f
tree927076d9d02b03a3c0a88ce10a8b673b0d2bbe5a
parentcf604fd40f75e046838c095a8b343eca24f65079
machine-image: extend search path

This adds directories in /etc and /run to the search paths for OS
images. While it doesn't make much sense to actually place huge disk
images there, it's good enough for symlinks to those.

The main reason for supporting this is that this allows us to neatly
symlink portable image files located outside of the search path into the
search path when attaching them, so that attaching them also means they
are discoverable properly for all commands.
src/shared/machine-image.c
src/shared/machine-image.h