From 2d14bf76ca62b10c9b5bca11b7d6cebb1954d20f Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Mon, 21 Mar 2016 23:39:37 +0000 Subject: [PATCH] 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. Closes-bug: #1564477 Change-Id: I76dc5adc64d2da0d27204ea31175244bc1b94428 (cherry picked from commit d2710b871b9f0141f0e7150590f896ab1fd71ba7) --- docker/firstboot/start_docker_agents.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/firstboot/start_docker_agents.sh b/docker/firstboot/start_docker_agents.sh index bb458a6825..950466dd0a 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