diff options
Diffstat (limited to 'meta-openstack-controller-test-config/recipes-devtools/python/python-cinder_git.bbappend')
-rw-r--r-- | meta-openstack-controller-test-config/recipes-devtools/python/python-cinder_git.bbappend | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder_git.bbappend b/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder_git.bbappend new file mode 100644 index 0000000..5003336 --- /dev/null +++ b/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder_git.bbappend | |||
@@ -0,0 +1,21 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI += " file://cinder-test-config.init" | ||
4 | |||
5 | do_install_prepend() { | ||
6 | # Remove nfs cinder-volume backend driver | ||
7 | sed -e "s/nfsdriver,//" -i ${WORKDIR}/cinder.conf | ||
8 | } | ||
9 | |||
10 | do_install_append() { | ||
11 | install -m 0755 ${WORKDIR}/cinder-test-config.init ${D}${sysconfdir}/init.d/cinder-test-config | ||
12 | } | ||
13 | |||
14 | PACKAGES += " ${SRCNAME}-test-config" | ||
15 | FILES_${SRCNAME}-test-config = "${sysconfdir}/init.d/cinder-test-config" | ||
16 | |||
17 | RDEPENDS_${SRCNAME}-tests += " ${SRCNAME}-test-config" | ||
18 | |||
19 | INITSCRIPT_PACKAGES += " ${SRCNAME}-test-config" | ||
20 | INITSCRIPT_NAME_${SRCNAME}-test-config = "cinder-test-config" | ||
21 | INITSCRIPT_PARAMS_${SRCNAME}-test-config = "defaults 95 10" | ||