diff --git a/libexec/commands/boot b/libexec/commands/boot index b9f3b36..388449b 100755 --- a/libexec/commands/boot +++ b/libexec/commands/boot @@ -131,6 +131,12 @@ case $(uname -s) in PRIVILEGED=--privileged ;; Linux) + if [ "$OSINFO_DISTRO" == "ol" ] && [ "$OSINFO_MAJOR" -le "8" ] + then + cgroup_mount_perm="rw" + else + cgroup_mount_perm="ro" + fi if [ -e /sys/fs/cgroup/cgroup.controllers ] then # CGROUPS v2 @@ -138,7 +144,7 @@ case $(uname -s) in else # CGROUPS v1 PRIVILEGED=--privileged - VOLUME_CGROUP="--volume /sys/fs/cgroup:/sys/fs/cgroup:ro" + VOLUME_CGROUP="--volume /sys/fs/cgroup:/sys/fs/cgroup:$cgroup_mount_perm" fi ;; *)