aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Hallisey <rhallise@redhat.com>2016-03-21 23:39:37 +0000
committerRyan Hallisey <rhallise@redhat.com>2016-03-30 15:29:18 +0000
commitd2710b871b9f0141f0e7150590f896ab1fd71ba7 (patch)
tree1453fdc3e72584140fdfd28a7c5295fb9e67e823
parentcccb984eb76febfedfe7118e27d3d82f31a224e2 (diff)
Centos gives /dev/pts/ptmx the wrong perms
In order to use cinder, we need to be able to use /dev/pts/ptmx. Centos sets this to 000 when on Fedora it's 666. Change-Id: I76dc5adc64d2da0d27204ea31175244bc1b94428
-rw-r--r--docker/firstboot/start_docker_agents.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/firstboot/start_docker_agents.sh b/docker/firstboot/start_docker_agents.sh
index bb458a6..950466d 100644
--- a/docker/firstboot/start_docker_agents.sh
+++ b/docker/firstboot/start_docker_agents.sh
@@ -48,6 +48,9 @@ fi
/sbin/setenforce 0
/sbin/modprobe ebtables
+# CentOS sets ptmx to 000. Withoutit being 666, we can't use Cinder volumes
+chmod 666 /dev/pts/ptmx
+
# We need hostname -f to return in a centos container for the puppet hook
HOSTNAME=$(hostname)
echo "127.0.0.1 $HOSTNAME.localdomain $HOSTNAME" >> /etc/hosts