summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/cinder-volume')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/cinder-volume5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
index cdad401..ad1d4de 100644
--- a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
+++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume
@@ -30,7 +30,10 @@ start()
30 fi 30 fi
31 31
32 #Load volume group 32 #Load volume group
33 DEV=`losetup -f --show /etc/cinder/volumes-backing` 33 DEV=`losetup -j /etc/cinder/volumes-backing | cut -d ":" -f 1 | head -1`
34 if [ -z $DEV ]; then
35 DEV=`losetup -f --show /etc/cinder/volumes-backing`
36 fi
34 if ! vgs cinder-volumes &> /dev/null ; then 37 if ! vgs cinder-volumes &> /dev/null ; then
35 vgcreate cinder-volumes $DEV 38 vgcreate cinder-volumes $DEV
36 fi 39 fi