about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
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