From: Thomas Goirand Date: Tue, 8 Dec 2015 09:46:47 +0000 (+0100) Subject: Finishes the fix of the generated config file. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=853378da953b7077f367cc5ae38cdc8797917861;p=openstack-build%2Fcinder-build.git Finishes the fix of the generated config file. Rewritten-From: 005f4aa3c38f591fc9ee8b70fc81a81e84721219 --- diff --git a/trusty/debian/rules b/trusty/debian/rules index 1fef7ec77..829a34054 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -59,6 +59,14 @@ override_dh_install: # ./debian/gen-fixed-config cp etc/cinder/cinder.conf.sample $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + # Set LVM as default backend + sed -i 's/^[ \t#]*enabled_backends[ \t]*=.*/enabled_backends = lvm/' $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + echo "[lvm]" >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + echo "volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver" >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + echo "volume_group = pkgosvg0" >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + echo "iscsi_protocol = iscsi" >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + echo "iscsi_helper = tgtadm" >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf + # Set a default value for lock_path sed -i 's|^[ \t#]*lock_path[ \t]*=.*|lock_path = /var/lock/cinder|' $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf