]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: support upgrading from DynamicUser=0 to DynamicUser=1 for unit directories...
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Nov 2017 10:52:39 +0000 (11:52 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2017 10:52:39 +0000 (11:52 +0100)
commit949befd3f09e8c06a908ec99efd241666c21d944
tree34bf0c8add224a2bd51c845cd5d0c761a2dcde8c
parent191e9ef87d438eb78f932688455d2e9e18737401
core: support upgrading from DynamicUser=0 to DynamicUser=1 for unit directories (#7507)

This makes sure we migrate /var/lib/<foo> if it exists to
/var/lib/private/<foo> if DynamicUser=1 is set. This is useful to allow
turning on DynamicUser= on services that previously didn't use it, and
we can deal with this, and migrate the relevant directories as
necessary.

Note that "downgrading" from DynamicUser=1 backto DynamicUser=0 works
too. However in that case we simply continue to use
/var/lib/private/<foo>, which works because /var/lib/<foo> is a symlink
there after all.
src/core/execute.c