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 <luca.boccassi@microsoft.com>
Fri, 28 Jan 2022 00:54:10 +0000 (00:54 +0000)
commit3fa80e5e75a98ef6f9a84b01770b71a1774478dc
tree52fcb950118bde2160cd1e51219ee8aa056db592
parent6d7c999ab5958d6f1f192e7d0a63b8c330a077cb
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
src/core/execute.c
test/test-functions
test/units/testsuite-29.sh
test/units/testsuite-50.sh