lsb_release is not installed by default on Fedora (or at least
it's not on my F17 box), so we should avoid using it, simple
alternative is just to read /etc/fedora-release instead
Change-Id: I341c151e8560fb971b11d27578934940aeeca1a7
Signed-off-by: Steven Hardy <shardy@redhat.com>
with_cinder=0
fi
-if [[ `lsb_release -sr` -gt 17 || $with_cinder -eq 1 ]]; then
+FEDORA_VERSION=$(cat /etc/fedora-release | awk '{print $3}')
+if [[ $FEDORA_VERSION -gt 17 || $with_cinder -eq 1 ]]; then
VOLUME_SERVICE="openstack-cinder"
VOLUME_PATH="/var/lib/cinder/cinder-volumes.img"
VOLUME_NAME="cinder-volumes"