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 <[email protected]>
---
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
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel