core: do not attempt to add 'private' symlinks when RootImage/RootDirectory are used
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 27 Jan 2022 14:10:34 +0000 (14:10 +0000)
committerLuca Boccassi <bluca@debian.org>
Mon, 14 Feb 2022 22:02:31 +0000 (22:02 +0000)
commitcd740bdeafd1c1716565b7dde7178026eb8362a5
tree937b873526e28c6b73c1ec058cc661fd1f316630
parent3f721fd8034a290d7a78a96675b1396eff5b4ae3
core: do not attempt to add 'private' symlinks when RootImage/RootDirectory are used

A bind mount is added directly from private on the host to the actual
destination directory, no need for the symlinks (which cannot be created
as the bind mount happens first and creates the target as an actual directory)

Fixes https://github.com/systemd/systemd/issues/22264

(cherry picked from commit 3fa80e5e75a98ef6f9a84b01770b71a1774478dc)

Conflicts:
test/units/testsuite-50.sh
src/core/execute.c
test/test-functions
test/units/testsuite-29.sh
test/units/testsuite-50.sh