]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: skip symlink to a combined cgroup hierarchy if it already exists
authorIago López Galeiras <iago@endocode.com>
Wed, 13 May 2015 13:45:49 +0000 (15:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 May 2015 14:03:07 +0000 (16:03 +0200)
commit875e1014dd9d55cd0692dcce843598cffb2d09b0
tree56dc288f358172ede7ab92d9b3fab5e409d3cdfd
parent54b4755f15438c86991d5a4eaadc47150f7e5a84
nspawn: skip symlink to a combined cgroup hierarchy if it already exists

If a symlink to a combined cgroup hierarchy already exists and points to
the right path, skip it. This avoids an error when the cgroups are set
manually before calling nspawn.
src/nspawn/nspawn.c
src/shared/util.c
src/shared/util.h