[OE-core] [PATCH][oe-core 1/3] sysstat: don't run populate-volatile.sh update in do_rootfs or without populate-volatile.sh

Richard Purdie richard.purdie at linuxfoundation.org
Wed Nov 30 23:33:53 UTC 2011


On Wed, 2011-11-30 at 23:56 +0100, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> ---
>  meta/recipes-extended/sysstat/sysstat.inc       |    6 +++++-
>  meta/recipes-extended/sysstat/sysstat_10.0.2.bb |    2 +-
>  2 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
> index 2936f96..5e0f7af 100644
> --- a/meta/recipes-extended/sysstat/sysstat.inc
> +++ b/meta/recipes-extended/sysstat/sysstat.inc
> @@ -22,7 +22,11 @@ do_install() {
>  }
>  
>  pkg_postinst_${PN} () {
> -        /etc/init.d/populate-volatile.sh update
> +        if [ "x$D" != "x" ]; then

Is that really what you mean?

> +                if [ -e /etc/init.d/populate-volatile.sh ]; then
> +                        /etc/init.d/populate-volatile.sh update
> +                fi
> +        fi
>  }
>  

Cheers,

Richard





More information about the Openembedded-core mailing list