RHEL 7 and CentOS 7 need the same fix

This commit is contained in:
Remi Bergsma 2015-08-19 16:26:48 +02:00
parent 14013d5d1b
commit d1cb4c7d50

View File

@ -19,7 +19,7 @@
# Script to fix cgroups co-mounted issue # Script to fix cgroups co-mounted issue
# Applies to RHEL7 versions only # Applies to RHEL 7 versions (and family member CentOS 7) only
# Detect if cpu,cpuacct cgroups are co-mounted # Detect if cpu,cpuacct cgroups are co-mounted
# If co-mounted, unmount and mount them seperately # If co-mounted, unmount and mount them seperately
@ -28,7 +28,7 @@
# Check distribution version for RHEL # Check distribution version for RHEL
if [ -f '/etc/redhat-release' ]; then if [ -f '/etc/redhat-release' ]; then
# Check RHEL version for 7 # Check RHEL version for 7
if grep 'Red Hat Enterprise Linux Server release 7' /etc/redhat-release > /dev/null; then if grep -E 'Red Hat Enterprise Linux Server release 7|CentOS Linux release 7' /etc/redhat-release > /dev/null; then
# Check if cgroups if co-mounted # Check if cgroups if co-mounted
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ]; then if [ -d '/sys/fs/cgroup/cpu,cpuacct' ]; then
# cgroups co-mounted. Requires remount # cgroups co-mounted. Requires remount