Merge pull request #2068 from grawity/cgls-error-v2

cgls: add a better error message for missing cgroupfs [v2]
This commit is contained in:
Lennart Poettering 2015-11-30 19:32:19 +01:00
commit bca27e1729
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ static int get_cgroup_root(char **ret) {
if (!arg_machine) {
r = cg_get_root_path(ret);
if (r < 0)
if (r == -ENOEXEC)
return log_error_errno(r, "Failed to get root control group path: No cgroup filesystem mounted on /sys/fs/cgroup");
else if (r < 0)
return log_error_errno(r, "Failed to get root control group path: %m");
return 0;