diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_git.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index a706223..c1ca58c 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb | |||
| @@ -54,6 +54,8 @@ do_install_append() { | |||
| 54 | cp -r tools ${CINDER_CONF_DIR} | 54 | cp -r tools ${CINDER_CONF_DIR} |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | CINDER_LVM_VOLUME_BACKING_FILE_SIZE ?= "2G" | ||
| 58 | |||
| 57 | pkg_postinst_${SRCNAME}-setup () { | 59 | pkg_postinst_${SRCNAME}-setup () { |
| 58 | if [ "x$D" != "x" ]; then | 60 | if [ "x$D" != "x" ]; then |
| 59 | exit 1 | 61 | exit 1 |
| @@ -69,7 +71,7 @@ pkg_postinst_${SRCNAME}-setup () { | |||
| 69 | cinder-manage db sync | 71 | cinder-manage db sync |
| 70 | 72 | ||
| 71 | #Create cinder volume group backing file | 73 | #Create cinder volume group backing file |
| 72 | [[ -f /etc/cinder/volumes-backing ]] || truncate -s 2G /etc/cinder/volumes-backing | 74 | [[ -f /etc/cinder/volumes-backing ]] || truncate -s ${CINDER_LVM_VOLUME_BACKING_FILE_SIZE} /etc/cinder/volumes-backing |
| 73 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf | 75 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf |
| 74 | } | 76 | } |
| 75 | 77 | ||
