Support libvirt group instead of libvirtd when hugepages set up
Adding check code if there is libvirt group or libvirtd group after pike release. Currently getting error when setting hugepage option in pike Change-Id: I324b7d95c659ea047b0fe8e25c8e2faad1077f1a Closes-Bug: #1747805
This commit is contained in:
parent
f4f195253a
commit
4daa7d1f5e
@ -11,4 +11,10 @@
|
|||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
mkdir -p /run/hugepages/kvm/libvirt/qemu || true
|
mkdir -p /run/hugepages/kvm/libvirt/qemu || true
|
||||||
chown libvirt-qemu:libvirtd /run/hugepages/kvm/libvirt/qemu
|
|
||||||
|
libvirt_group="libvirtd"
|
||||||
|
if getent group libvirt >/dev/null; then
|
||||||
|
libvirt_group="libvirt"
|
||||||
|
fi
|
||||||
|
|
||||||
|
chown libvirt-qemu:$libvirt_group /run/hugepages/kvm/libvirt/qemu
|
||||||
|
Loading…
Reference in New Issue
Block a user