You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2015/08/19 17:47:55 UTC
[2/3] git commit: updated refs/heads/master to b913c88
RHEL 7 and CentOS 7 need the same fix
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d1cb4c7d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d1cb4c7d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d1cb4c7d
Branch: refs/heads/master
Commit: d1cb4c7d501eb7e37d04bc99b0482c28c8bec38b
Parents: 14013d5
Author: Remi Bergsma <gi...@remi.nl>
Authored: Wed Aug 19 16:26:48 2015 +0200
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Wed Aug 19 16:30:24 2015 +0200
----------------------------------------------------------------------
scripts/vm/hypervisor/kvm/setup-cgroups.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d1cb4c7d/scripts/vm/hypervisor/kvm/setup-cgroups.sh
----------------------------------------------------------------------
diff --git a/scripts/vm/hypervisor/kvm/setup-cgroups.sh b/scripts/vm/hypervisor/kvm/setup-cgroups.sh
index d3342c0..6b00b02 100755
--- a/scripts/vm/hypervisor/kvm/setup-cgroups.sh
+++ b/scripts/vm/hypervisor/kvm/setup-cgroups.sh
@@ -19,7 +19,7 @@
# 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
# If co-mounted, unmount and mount them seperately
@@ -28,7 +28,7 @@
# Check distribution version for RHEL
if [ -f '/etc/redhat-release' ]; then
# 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
if [ -d '/sys/fs/cgroup/cpu,cpuacct' ]; then
# cgroups co-mounted. Requires remount