From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RW5h1-0004Za-K9 for openembedded-core@lists.openembedded.org; Thu, 01 Dec 2011 13:24:47 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB1CI67Y014700 for ; Thu, 1 Dec 2011 12:18:06 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14354-04 for ; Thu, 1 Dec 2011 12:18:02 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB1CI0fD014694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Dec 2011 12:18:00 GMT Message-ID: <1322741889.17484.115.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Thu, 01 Dec 2011 12:18:09 +0000 In-Reply-To: <9f1d39eb3edbde086f99f084c2e88d5e9fc21332.1322740824.git.Martin.Jansa@gmail.com> References: <9f1d39eb3edbde086f99f084c2e88d5e9fc21332.1322740824.git.Martin.Jansa@gmail.com> X-Mailer: Evolution 3.2.1- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Subject: Re: [PATCH][oe-core 1/4] sysstat: don't run populate-volatile.sh update in do_rootfs or without populate-volatile.sh X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2011 12:24:48 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Thu, 2011-12-01 at 13:02 +0100, Martin Jansa wrote: > Signed-off-by: Martin Jansa > --- > meta/recipes-extended/sysstat/sysstat.inc | 7 ++++++- > meta/recipes-extended/sysstat/sysstat_10.0.2.bb | 2 +- > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc > index 2936f96..ca40ab5 100644 > --- a/meta/recipes-extended/sysstat/sysstat.inc > +++ b/meta/recipes-extended/sysstat/sysstat.inc > @@ -22,7 +22,12 @@ do_install() { > } > > pkg_postinst_${PN} () { > - /etc/init.d/populate-volatile.sh update > + if [ -n "$D" ]; then > + exit 1 > + fi I'm confused. Can't we exit 0 here since the system will have run populate-volatile.sh update at rootfs time or first boot as needed so we don't need to run it again? See recipes-core/dbus/dbus.inc or pulseaudio for similar examples. Cheers, Richard