diff --git a/nodepool/scripts/prepare_node.sh b/nodepool/scripts/prepare_node.sh index 8f5b7c5340..cf43c8e6a3 100755 --- a/nodepool/scripts/prepare_node.sh +++ b/nodepool/scripts/prepare_node.sh @@ -31,6 +31,10 @@ fi echo $HOSTNAME > /tmp/image-hostname.txt sudo mv /tmp/image-hostname.txt /etc/image-hostname.txt +# CentOS 6 image doesn't come with lsb_release +if [ -f /usr/bin/yum ]; then + sudo yum -y install redhat-lsb-core +fi LSBDISTID=$(lsb_release -is) LSBDISTCODENAME=$(lsb_release -cs) if [ "$LSBDISTID" == "Ubuntu" ] ; then