Ensure correct polkit config written for RHEL6

Ensure the correct polkit config is written for RHEL6, or nova-cpu
will fail to start with libvirt permission errors

Change-Id: I871ef4e03157883db15be41222b7338765fbb843
This commit is contained in:
Ian Wienand 2013-05-02 12:02:22 +10:00
parent bc41b5b079
commit b85f9d73c1

View File

@ -297,7 +297,7 @@ EOF
if is_fedora || is_suse; then
if is_fedora && [[ "$os_RELEASE" -le "17" ]]; then
if is_fedora && [[ $DISTRO =~ (rhel6) || "$os_RELEASE" -le "17" ]]; then
sudo bash -c 'cat <<EOF >/etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla
[libvirt Management Access]
Identity=unix-group:libvirtd