ceph: fix the path for service in ceph-disk

The hardcoded path /usr/sbin/service in ceph-disk is
incorrect for yocto.

Story: 2008204
Task: 40988

Change-Id: I374a90886ad679595054ab3b75c3438002f52024
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-09-28 20:59:25 +08:00
parent e878d8d0d0
commit 1eb2bd622a

View File

@ -98,6 +98,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}::'