Merge pull request #2068 from grawity/cgls-error-v2
cgls: add a better error message for missing cgroupfs [v2]
This commit is contained in:
commit
bca27e1729
|
@ -131,7 +131,9 @@ static int get_cgroup_root(char **ret) {
|
||||||
|
|
||||||
if (!arg_machine) {
|
if (!arg_machine) {
|
||||||
r = cg_get_root_path(ret);
|
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 log_error_errno(r, "Failed to get root control group path: %m");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue