[oe] [meta-oe][PATCH] lvm2: make sure services files are installed in systemd_unitdir folder
Zhenhua Luo
zhenhua.luo at freescale.com
Tue Sep 22 11:39:23 UTC 2015
Make sure the services files are installed in ${D}/${systemd_unitdir}/system,
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 2b2d8ed..1968ac9 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -39,7 +39,7 @@ do_install_append() {
# Install machine specific configuration file
install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
sed -i -e 's:@libdir@:${libdir}:g' ${D}${sysconfdir}/lvm/lvm.conf
- oe_runmake 'DESTDIR=${D}' install install_systemd_units
+ oe_runmake 'DESTDIR=${D}' systemd_unit_dir=${D}/${systemd_unitdir}/system install install_systemd_units
sed -i -e 's:/usr/bin/true:${base_bindir}/true:g' ${D}${systemd_unitdir}/system/blk-availability.service
}
--
2.4.3
More information about the Openembedded-devel
mailing list