only mount cgroups if you haven't already
This commit is contained in:
parent
0edde7d44f
commit
e4304238c2
1 changed files with 3 additions and 1 deletions
4
stack.sh
4
stack.sh
|
@ -409,7 +409,9 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
||||||
if ! grep -q cgroup /etc/fstab; 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
|
echo none /cgroup cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0 | sudo tee -a /etc/fstab
|
||||||
fi
|
fi
|
||||||
sudo mount /cgroup
|
if ! mount -n | grep -q cgroup; then
|
||||||
|
sudo mount /cgroup
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# User needs to be member of libvirtd group for nova-compute to use libvirt.
|
# User needs to be member of libvirtd group for nova-compute to use libvirt.
|
||||||
|
|
Loading…
Reference in a new issue