ceph: fix the path for service in ceph-disk 90/4690/1
authorJackie Huang <jackie.huang@windriver.com>
Tue, 8 Sep 2020 11:01:34 +0000 (19:01 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Thu, 10 Sep 2020 08:13:41 +0000 (16:13 +0800)
The hardcoded path /usr/sbin/service in ceph-disk is incorrect
for yocto.

Issue-ID: INF-188
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ibb52b7b6f40ea2d068516bb258150a4171eaee48

meta-stx/recipes-extended/ceph/ceph_13.2.2.bb

index 8c6b076..29a97c1 100644 (file)
@@ -113,6 +113,7 @@ do_configure_prepend () {
 do_install_append () {
     mv ${D}${bindir}/ceph-disk ${D}${sbindir}/ceph-disk
     sed -i -e 's:${WORKDIR}.*python2.7:${bindir}/python:' ${D}${sbindir}/ceph-disk
+    sed -i -e 's:${sbindir}/service:${bindir}/service:' ${D}/${libdir}/python2.7/site-packages/ceph_disk/main.py
     sed -i -e 's:${WORKDIR}.*python2.7:${bindir}/python:' ${D}${bindir}/ceph
     sed -i -e 's:${WORKDIR}.*python2.7:${bindir}/python:' ${D}${bindir}/ceph-detect-init
     find ${D} -name SOURCES.txt | xargs sed -i -e 's:${WORKDIR}::'