forked from wrenn/wrenn
Bugfix: cgroup2 related error inside the sandbox
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user