Merge "Work around 20-neutron-selinux issues on F21"

This commit is contained in:
Jenkins 2015-03-13 20:05:38 +00:00 committed by Gerrit Code Review
commit 56c6e07f2d
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@ set -eu
[ -x /usr/sbin/semanage ] || exit 0
# FIXME: Work around SELinux issues on Fedora 21
# https://bugs.launchpad.net/tripleo/+bug/1428784
VERSION=`lsb_release -sr` || true
[ $VERSION -eq 21 ] && exit 0
semanage fcontext -a -t neutron_var_lib_t "/mnt/state/var/lib/neutron(/.*)?"
restorecon -Rv /mnt/state/var/lib/neutron