From e4304238c201ea22eaea1d17d7d693f58799eae6 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Fri, 7 Oct 2011 10:34:32 -0400 Subject: [PATCH] only mount cgroups if you haven't already --- stack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index e64035b..9b53c8c 100755 --- a/stack.sh +++ b/stack.sh @@ -409,7 +409,9 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then if ! grep -q cgroup /etc/fstab; then echo none /cgroup cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0 | sudo tee -a /etc/fstab fi - sudo mount /cgroup + if ! mount -n | grep -q cgroup; then + sudo mount /cgroup + fi fi # User needs to be member of libvirtd group for nova-compute to use libvirt.