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

Pau Espin Pedrol pespin.shar at gmail.com
Tue Sep 22 12:00:56 UTC 2015


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.shar at gmail.com
http://blog.espeweb.net

2015-09-22 13:39 GMT+02:00 Zhenhua Luo <zhenhua.luo at 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.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
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list