From 566ca65a3b2c35de811dbd895e2c024e250c6b28 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Tue, 11 Nov 2014 12:28:19 +0000 Subject: [PATCH] initd: mount cgroup If kernel is compiled with cgroup support it should be mounted. This change does not effect kernels without cgroup support. Signed-off-by: Luka Perkov --- initd/early.c | 1 + 1 file changed, 1 insertion(+) diff --git a/initd/early.c b/initd/early.c index a9f6afb..c622aec 100644 --- a/initd/early.c +++ b/initd/early.c @@ -29,6 +29,7 @@ early_mounts(void) { mount("proc", "/proc", "proc", MS_NOATIME, 0); mount("sysfs", "/sys", "sysfs", MS_NOATIME, 0); + mount("none", "/sys/fs/cgroup", "cgroup", 0, 0); mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOATIME, NULL); mkdir("/tmp/run", 0777); -- 2.25.1