mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
cgroup: reduce loglevel for missing/disallowed cgroup support
A user with no cgroup support in kernel does not know what they are missing, and a user running in a container has someone else managing cgroups. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
4aae3403f5
commit
edc2d53923
1 file changed
+2
-2
+2
-2
@@ -465,9 +465,9 @@ void cgroup_init(uev_ctx_t *ctx)
|
||||
|
||||
if (mount("none", FINIT_CGPATH, "cgroup2", opts, NULL)) {
|
||||
if (errno == ENOENT)
|
||||
logit(LOG_NOTICE, "Kernel does not support cgroups v2, disabling.");
|
||||
logit(LOG_INFO, "Kernel does not support cgroups v2, disabling.");
|
||||
else if (errno == EPERM) /* Probably inside an unpriviliged container */
|
||||
logit(LOG_NOTICE, "Not allowed to mount cgroups v2, disabling.");
|
||||
logit(LOG_INFO, "Not allowed to mount cgroups v2, disabling.");
|
||||
else
|
||||
_pe("Failed mounting cgroup v2");
|
||||
avail = 0;
|
||||
|
||||
Reference in new issue
Block a user