diff options
author | Juan RP <xtraeme@gmail.com> | 2014-07-19 09:34:10 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-07-19 09:34:41 +0200 |
commit | 627e3899224513d7b0b0c3d58847d81f3fffd9fd (patch) | |
tree | dcd96523283fc331258970a5b807130159d2675c /1 | |
parent | 21ef0a151e8f0516bce5679fcb01dfbb24fd4c8f (diff) | |
download | runit-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-x | 1 | 3 |
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 |