diff options
author | Luka Perkov <luka@openwrt.org> | 2014-11-11 13:28:19 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-11-14 15:21:42 +0100 |
commit | 566ca65a3b2c35de811dbd895e2c024e250c6b28 (patch) | |
tree | 5dff22936df9749e94ba2d704f2b1fe2ee7d9ff8 | |
parent | 0f49ab0feab67aac4a399bbad58f5f230f625833 (diff) | |
download | unitd-566ca65a3b2c35de811dbd895e2c024e250c6b28.tar unitd-566ca65a3b2c35de811dbd895e2c024e250c6b28.zip |
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 <luka@openwrt.org>
-rw-r--r-- | initd/early.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |