about summary refs log tree commit diff
path: root/1
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-07-19 09:34:10 +0200
committerJuan RP <xtraeme@gmail.com>2014-07-19 09:34:41 +0200
commit627e3899224513d7b0b0c3d58847d81f3fffd9fd (patch)
treedcd96523283fc331258970a5b807130159d2675c /1
parent21ef0a151e8f0516bce5679fcb01dfbb24fd4c8f (diff)
downloadrunit-void-627e3899224513d7b0b0c3d58847d81f3fffd9fd.tar.gz
runit-void-627e3899224513d7b0b0c3d58847d81f3fffd9fd.tar.xz
runit-void-627e3899224513d7b0b0c3d58847d81f3fffd9fd.zip
1: mount cgroups as done by ignite too.
Diffstat (limited to '1')
-rwxr-xr-x13
1 files changed, 3 insertions, 0 deletions
diff --git a/1 b/1
index ec47773..4b895fd 100755
--- a/1
+++ b/1
@@ -120,6 +120,9 @@ mount -o remount,rw /
 msg "Mounting all non-network filesystems...\n"
 mount -a -t "nosysfs,nonfs,nonfs4,nosmbfs,nocifs" -O no_netdev
 
+mountpoint -q /sys/fs/cgroup || mount -t tmpfs cgroup /sys/fs/cgroup -o mode=0755
+awk '$4==1 { system("mountpoint -q /sys/fs/cgroup/" $1 " || mount -t cgroup -o " $1 ",x-mount.mkdir cgroup /sys/fs/cgroup/" $1) }' /proc/cgroups
+
 msg "Initializing swap...\n"
 swapon -a