From 50ee67b657c01b1785e2a2dcf43856a9c031e9bf Mon Sep 17 00:00:00 2001 From: "bingshen.wbs" Date: Mon, 30 Jan 2023 19:28:07 +0800 Subject: [PATCH] fix cpu controller not set in cgroup v2 --- scripts/set-cgroupv2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/set-cgroupv2.sh b/scripts/set-cgroupv2.sh index af452f8..8b59235 100644 --- a/scripts/set-cgroupv2.sh +++ b/scripts/set-cgroupv2.sh @@ -1,10 +1,10 @@ #!/bin/bash -echo $CGROUP_MODE if [[ ! -z $CGROUP_MODE ]] && [[ $CGROUP_MODE =~ .*[v,V]2.* ]]; then echo "set cgroup mode to $CGROUP_MODE" if ! grep -q 'systemd.unified_cgroup_hierarchy=1' /etc/default/grub; then grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1" + grubby --update-kernel=ALL --args="cgroup_no_v1=all" fi fi