Unverified Commit 94ce9fb8 by Christian Brauner Committed by GitHub

Merge pull request #3704 from tych0/drop-empty-cgroup-check

cgroup: do not fail if there are no writable heirarchies
parents b49f36bc 1ecac3bf
......@@ -34,11 +34,6 @@ struct cgroup_ops *cgroup_init(struct lxc_conf *conf)
if (!cgroup_ops)
return log_error_errno(NULL, errno, "Failed to initialize cgroup driver");
if (!cgroup_ops->hierarchies) {
cgroup_exit(cgroup_ops);
return log_error_errno(NULL, ENOENT, "No cgroup hierarchies found");
}
if (cgroup_ops->data_init(cgroup_ops)) {
cgroup_exit(cgroup_ops);
return log_error_errno(NULL, errno, "Failed to initialize cgroup data");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment