1
0
forked from wrenn/wrenn

Bugfix: cgroup2 related error inside the sandbox

This commit is contained in:
2026-03-25 19:45:57 +06:00
parent 8d5ba3873a
commit 7473c15f52

View File

@ -15,6 +15,7 @@ mount -t tmpfs tmpfs /tmp 2>/dev/null || true
mount -t tmpfs tmpfs /run 2>/dev/null || true mount -t tmpfs tmpfs /run 2>/dev/null || true
mkdir -p /sys/fs/cgroup mkdir -p /sys/fs/cgroup
mount -t cgroup2 cgroup2 /sys/fs/cgroup 2>/dev/null || true mount -t cgroup2 cgroup2 /sys/fs/cgroup 2>/dev/null || true
echo "+cpu +memory +io" > /sys/fs/cgroup/cgroup.subtree_control 2>/dev/null || true
# Set hostname # Set hostname
hostname sandbox hostname sandbox