about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-09-23 17:20:13 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-09-23 17:20:13 +0200
commit161da00268b2a6d139cce2c026dd28a6812ff756 (patch)
tree7d547de5f62e1bcba4543799ed74f8bd92d038e3 /core-services
parent49463b55b6c51a8dfc63c96c8116e563eebaa8a2 (diff)
downloadrunit-void-161da00268b2a6d139cce2c026dd28a6812ff756.tar.gz
runit-void-161da00268b2a6d139cce2c026dd28a6812ff756.tar.xz
runit-void-161da00268b2a6d139cce2c026dd28a6812ff756.zip
00-pseudofs.sh: restore cgroup mounting in a busybox-compatible way
Diffstat (limited to 'core-services')
-rw-r--r--core-services/00-pseudofs.sh1
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