From: Luka Perkov Date: Tue, 11 Nov 2014 12:28:19 +0000 (+0000) Subject: initd: mount cgroup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=566ca65a3b2c35de811dbd895e2c024e250c6b28;p=oweals%2Fprocd.git 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 --- 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);