[oe] [meta-oe][PATCH v2] lvm2: make sure services files are installed in systemd_unitdir folder

Zhenhua Luo zhenhua.luo at freescale.com
Fri Sep 25 10:08:32 UTC 2015


Make sure the services files are installed in ${D}/${systemd_system_unitdir},
fixed the following build error:
| sed: can't read .../lvm2/2.02.125-r0/image/lib/systemd/system/blk-availability.service: No such file or directory
|   sed -i -e 's:/usr/bin/true:/bin/true:g' .../lvm2/2.02.125-r0/image/lib/systemd/system/blk-availability.service

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 meta-oe/recipes-support/lvm2/lvm2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index cc70246..ac9434c 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -40,7 +40,7 @@ do_install_append() {
     install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
     sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
     if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
-        oe_runmake 'DESTDIR=${D}' install install_systemd_units
+        oe_runmake 'DESTDIR=${D}' systemd_unit_dir=${D}/${systemd_system_unitdir} install install_systemd_units
         sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_unitdir}/system/blk-availability.service
     else
         oe_runmake 'DESTDIR=${D}' install install_initscripts
-- 
2.4.3




More information about the Openembedded-devel mailing list