]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: Support RUNTIME_DIRECTORY again (#41619)
authorChristian Brauner <christian@amutable.com>
Mon, 13 Apr 2026 17:46:55 +0000 (19:46 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 17:46:55 +0000 (19:46 +0200)
commit73cbf95d25338de7de2eaa3fb7c8abc4ae4c4d16
treeec0c074c78741fe4d98a254d5f42cbe8fd835065
parentb40ed2067fb669540b1a640e293334fd31403676
parent47237cf6238e5a8bcbd866cc091d9b1aa0d9c300
vmspawn: Support RUNTIME_DIRECTORY again (#41619)

In ccecae0efd ("vmspawn: use machine name in runtime directory path")
support for RUNTIME_DIRECTORY was dropped which makes it difficult to
run systemd-vmspawn in a service unit which doesn't have write access to
the regular /run but should use its own managed RUNTIME_DIRECTORY. What
worked before was --keep-unit --system but we can't use XDG_RUNTIME_DIR
and --user because then --keep-unit breaks which we need because it
can't create a scope as there is no session. Switch back to
runtime_directory which handles RUNTIME_DIRECTORY and tells us whether
we should use it as is without later cleanup or if we need to use the
regular path where we create and delete the directory ourselves.