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 1RYH2C-0002my-Ki for openembedded-core@lists.openembedded.org; Wed, 07 Dec 2011 13:55:40 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pB7Cmqlo013070 for ; Wed, 7 Dec 2011 12:48:52 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 11271-09 for ; Wed, 7 Dec 2011 12:48:48 +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 pB7Cmh62013064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 7 Dec 2011 12:48:44 GMT Message-ID: <1323262134.30601.7.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Wed, 07 Dec 2011 12:48:54 +0000 In-Reply-To: <822c669a79e5f30bda467bc3a6f7b3c92377af22.1323160412.git.Martin.Jansa@gmail.com> References: <822c669a79e5f30bda467bc3a6f7b3c92377af22.1323160412.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/3] 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: Wed, 07 Dec 2011 12:55:41 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2011-12-06 at 09:35 +0100, Martin Jansa wrote: > Signed-off-by: Martin Jansa > --- > meta/recipes-extended/sysstat/sysstat.inc | 7 ++++++- > meta/recipes-extended/sysstat/sysstat_10.0.3.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 > + if [ -e /etc/init.d/populate-volatile.sh ]; then > + /etc/init.d/populate-volatile.sh update > + fi > } The subject commit message and the code match now, thanks :) My only other question is whether we need to run this at first boot time? At first boot after rootfs, populate-volatile will run anyway. We therefore don't need to run the update as a postinst on device as part of first boot as well as it will always be covered if present. I therefore think this should be an "exit 0" and the commit message should be: "sysstat: don't run populate-volatile.sh update in do_rootfs, first boot or without populate-volatile.sh" Does that make sense? Cheers, Richard