diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-30 19:32:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-30 19:32:19 +0100 |
commit | bca27e1729b496081b0fa4e2754f5fcdcc0efce5 (patch) | |
tree | bc07fe489ba6a104d53454ba3cdf0bb862f67ccf | |
parent | de418eb91cfa07f2d67f0eeaf0e787da4fa4feac (diff) | |
parent | e97a84757f76b9c4c401bbc6fa147e35204b2a1b (diff) |
Merge pull request #2068 from grawity/cgls-error-v2
cgls: add a better error message for missing cgroupfs [v2]
-rw-r--r-- | src/cgls/cgls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index 01140c73d8..e6277a9084 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -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; |