diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-23 17:20:13 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-23 17:20:13 +0200 |
commit | 161da00268b2a6d139cce2c026dd28a6812ff756 (patch) | |
tree | 7d547de5f62e1bcba4543799ed74f8bd92d038e3 | |
parent | 49463b55b6c51a8dfc63c96c8116e563eebaa8a2 (diff) | |
download | runit-void-161da00268b2a6d139cce2c026dd28a6812ff756.tar.gz runit-void-161da00268b2a6d139cce2c026dd28a6812ff756.tar.xz runit-void-161da00268b2a6d139cce2c026dd28a6812ff756.zip |
00-pseudofs.sh: restore cgroup mounting in a busybox-compatible way
-rw-r--r-- | core-services/00-pseudofs.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core-services/00-pseudofs.sh b/core-services/00-pseudofs.sh index 18c7399..dae9c45 100644 --- a/core-services/00-pseudofs.sh +++ b/core-services/00-pseudofs.sh @@ -11,4 +11,5 @@ mountpoint -q /dev/shm || mount -o mode=1777,nosuid,nodev -n -t tmpfs shm /dev/s if [ -z "$VIRTUALIZATION" ]; then mountpoint -q /sys/fs/cgroup || mount -o mode=0755 -t tmpfs cgroup /sys/fs/cgroup + awk '$4 == 1 { system("mountpoint -q /sys/fs/cgroup/" $1 " || { mkdir -p /sys/fs/cgroup/" $1 " && mount -t cgroup -o " $1 " cgroup /sys/fs/cgroup/" $1 " ;}" ) }' /proc/cgroups fi |