]> git.proxmox.com Git - mirror_lxc.git/commit
cgfsng: don't require that systemd subsystem be mounted
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 12 Apr 2016 17:34:28 +0000 (12:34 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 12 Apr 2016 17:41:39 +0000 (12:41 -0500)
commitc30b61c37695a88f07ed5641ad270e4785a3a918
tree308ee943c90e5d5d477f8f276ca76a8f7bcef2de
parent1f7c5761aa9c5fb2d2c60559e92ac01cfe34704e
cgfsng: don't require that systemd subsystem be mounted

Note that is_crucial_subsystem still lists name=systemd.  That is
used in cgfs and cgmanager.  Cgmanager is typically setup to create
name=systemd, so it is ok.  cgfs uses is_crucial_subsystem() only
to decide whether failure to create or chown a directory should be
terminal.  That's ok, because (a) if name=systemd is not mounted then
we won't hit that, and (b) if name=systemd is mounted, then we'd
really still like to set it up for containers.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgfsng.c
src/lxc/cgroup.c