Hi, Same stuff I have been proposing in other patches lately: How about using "systemd_system_unitdir" instead of "systemd_unitdir/system" ? You can find it in bitbake.conf
Pau Espin Pedrol mail/jabber: pespin.s...@gmail.com http://blog.espeweb.net 2015-09-22 13:39 GMT+02:00 Zhenhua Luo <zhenhua....@freescale.com>: > 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....@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 > > -- > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel