Skip to content

Commit d1cb4c7

Browse files
committed
RHEL 7 and CentOS 7 need the same fix
1 parent 14013d5 commit d1cb4c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/vm/hypervisor/kvm/setup-cgroups.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
# Script to fix cgroups co-mounted issue
22-
# Applies to RHEL7 versions only
22+
# Applies to RHEL 7 versions (and family member CentOS 7) only
2323
# Detect if cpu,cpuacct cgroups are co-mounted
2424
# If co-mounted, unmount and mount them seperately
2525

@@ -28,7 +28,7 @@
2828
# Check distribution version for RHEL
2929
if [ -f '/etc/redhat-release' ]; then
3030
# Check RHEL version for 7
31-
if grep 'Red Hat Enterprise Linux Server release 7' /etc/redhat-release > /dev/null; then
31+
if grep -E 'Red Hat Enterprise Linux Server release 7|CentOS Linux release 7' /etc/redhat-release > /dev/null; then
3232
# Check if cgroups if co-mounted
3333
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ]; then
3434
# cgroups co-mounted. Requires remount

0 commit comments

Comments
 (0)