e9929dae60
This reverts commit 43650d5837372449294a7a22e9c9167a92744e96. This fix do not work with CentOS x86_64. Since I haven't arm64 env, and we have fix this soon before pike is release. Just revert this and fix in the future. Change-Id: Id9eb531de7d05051f38e3ed13b64ae7abf552767 Partial-Bug: #1715356
25 lines
683 B
Bash
25 lines
683 B
Bash
#!/bin/bash
|
|
|
|
# TODO(SamYaple): Tweak libvirt.conf rather than change permissions.
|
|
# Fix permissions for libvirt
|
|
# Do not remove unless CentOS has been validated
|
|
if [[ -c /dev/kvm ]]; then
|
|
chmod 660 /dev/kvm
|
|
chown root:qemu /dev/kvm
|
|
fi
|
|
|
|
# Mount xenfs for libxl to work
|
|
if [[ $(lsmod | grep xenfs) ]]; then
|
|
mount -t xenfs xenfs /proc/xen
|
|
fi
|
|
|
|
if [[ ! -d "/var/log/kolla/libvirt" ]]; then
|
|
mkdir -p /var/log/kolla/libvirt
|
|
touch /var/log/kolla/libvirt/libvirtd.log
|
|
chmod 644 /var/log/kolla/libvirt/libvirtd.log
|
|
fi
|
|
if [[ $(stat -c %a /var/log/kolla/libvirt) != "755" ]]; then
|
|
chmod 755 /var/log/kolla/libvirt
|
|
chmod 644 /var/log/kolla/libvirt/libvirtd.log
|
|
fi
|