diff --git a/etc/rc.conf b/etc/rc.conf index 0029d516f..d359eb9ef 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -199,7 +199,7 @@ rc_tty_number=12 # cgroups version 1 on /sys/fs/cgroup. # "legacy" mounts cgroups version 1 on /sys/fs/cgroup # "unified" mounts cgroups version 2 on /sys/fs/cgroup -#rc_cgroup_mode="hybrid" +#rc_cgroup_mode="unified" # This is a list of controllers which should be enabled for cgroups version 2 # when hybrid mode is being used. diff --git a/init.d/cgroups.in b/init.d/cgroups.in index 4fa6b1316..faf53d8af 100644 --- a/init.d/cgroups.in +++ b/init.d/cgroups.in @@ -128,7 +128,7 @@ cgroups_unified() mount_cgroups() { - case "${rc_cgroup_mode:-hybrid}" in + case "${rc_cgroup_mode:-unified}" in hybrid) cgroups_hybrid ;; legacy) cgroups_legacy ;; unified) cgroups_unified ;; diff --git a/sh/rc-cgroup.sh b/sh/rc-cgroup.sh index c99282fca..e5c7ae7f5 100644 --- a/sh/rc-cgroup.sh +++ b/sh/rc-cgroup.sh @@ -154,7 +154,7 @@ cgroup_set_limits() cgroup2_find_path() { if grep -qw cgroup2 /proc/filesystems; then - case "${rc_cgroup_mode:-hybrid}" in + case "${rc_cgroup_mode:-unified}" in hybrid) printf "/sys/fs/cgroup/unified" ;; unified) printf "/sys/fs/cgroup" ;; esac