projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f49ab0
)
initd: mount cgroup
author
Luka Perkov
<luka@openwrt.org>
Tue, 11 Nov 2014 12:28:19 +0000
(12:28 +0000)
committer
John Crispin
<blogic@openwrt.org>
Fri, 14 Nov 2014 14:21:42 +0000
(15:21 +0100)
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>
initd/early.c
patch
|
blob
|
history
diff --git
a/initd/early.c
b/initd/early.c
index a9f6afbe04289a2e5473db7ef7e25db01b8f83ce..c622aece14c74c6a082e526bf26b3fc854f2cb58 100644
(file)
--- 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);