On Wed, 2011-12-07 at 13:50 +0100, Koen Kooi wrote: > Op 7 dec. 2011, om 13:48 heeft Richard Purdie het volgende geschreven: > > > On Tue, 2011-12-06 at 09:35 +0100, Martin Jansa wrote: > >> Signed-off-by: Martin Jansa <martin.ja...@gmail.com> > >> --- > >> 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. > > How does that interact with the volatiles caching logic?
It should be fine as far as I can tell... Cheers, Richard _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core