From 6d7d48760162c5c4e75affa19c1a868f0a8d14e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Mon, 4 Jan 2016 15:25:22 +0900 Subject: [PATCH] Set selinux to permissive in Vagrant Selinux is preventing to write on mounted volumes. Let's set it to permissive in Vagrant box provisioning. Change-Id: If8ea57f242166eb6f4ef618639d4ab672e5098d3 Closes-Bug: #1530766 --- dev/vagrant/bootstrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh index bc3d6c2f43..8ab845b2be 100644 --- a/dev/vagrant/bootstrap.sh +++ b/dev/vagrant/bootstrap.sh @@ -94,6 +94,10 @@ function configure_operator { su - vagrant sh -c "echo BUILDFLAGS=\\\"--build-env=http_proxy=$http_proxy --build-env=https_proxy=$https_proxy\\\" > ~/kolla/.buildconf" fi + # Set selinux to permissive + sed -i -r "s,^SELINUX=.+$,SELINUX=permissive," /etc/selinux/config + setenforce permissive + cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla mkdir -p /usr/share/kolla chown -R vagrant: /etc/kolla /usr/share/kolla