*point = '\0';
}
}
-
-/* Return true if this is a subsystem which we cannot do without.
- *
- * systemd is questionable here. The way callers currently use this, if systemd
- * is not mounted then it will be ignored. But if systemd is mounted, then it
- * must be setup so that lxc can create cgroups in it, else containers will
- * fail.
- *
- * cgroups listed in lxc.cgroup.use are also treated as crucial
- *
- */
-bool is_crucial_cgroup_subsystem(const char *s)
-{
- const char *cgroup_use;
-
- if (strcmp(s, "systemd") == 0)
- return true;
-
- if (strcmp(s, "name=systemd") == 0)
- return true;
-
- if (strcmp(s, "freezer") == 0)
- return true;
-
- cgroup_use = lxc_global_config_value("lxc.cgroup.use");
- if (cgroup_use && strstr(cgroup_use, s))
- return true;
-
- return false;
-}