All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@embeddedalley.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] image.bbclass: remove tmp/rootfs after image	creation unless you set a variable
Date: Wed, 17 Jun 2009 12:08:31 -0700	[thread overview]
Message-ID: <20090617190830.GG15477@smtp.west.cox.net> (raw)
In-Reply-To: <1245261716.27027.18.camel@dax.rpnet.com>

On Wed, Jun 17, 2009 at 07:01:56PM +0100, Richard Purdie wrote:
> On Wed, 2009-06-17 at 10:10 -0700, Chris Larson wrote:
> > Set IMAGE_KEEPROOTFS to something other than the empty string to keep
> > tmp/rootfs around after image creation, otherwise it will be removed, as it's
> > not a fully functional filesystem, and causes much confusion among users as a
> > result.
> > 
> > Signed-off-by: Chris Larson <clarson@mvista.com>
> > ---
> >  classes/image.bbclass |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/classes/image.bbclass b/classes/image.bbclass
> > index f0cc3b3..974e734 100644
> > --- a/classes/image.bbclass
> > +++ b/classes/image.bbclass
> > @@ -133,6 +133,7 @@ fakeroot do_rootfs () {
> >  	${IMAGE_POSTPROCESS_COMMAND}
> >  	
> >  	${MACHINE_POSTPROCESS_COMMAND}
> > +	${@['rm -rf ${IMAGE_ROOTFS}', ''][bool(d.getVar("IMAGE_KEEPROOTFS", 1))]}
> >  }
> >  
> >  do_deploy_to[nostamp] = "1"
> 
> Something I've been thinking about for a while is moving rootfs into
> ${WORKDIR}/. That way you can have concurrent image generation for a
> start and rm_work could be taught to clean it up...

Isn't the other part of that the need to serialize making the package
index files?

-- 
Tom Rini



  parent reply	other threads:[~2009-06-17 19:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-17 17:10 [PATCH] image.bbclass: remove tmp/rootfs after image creation unless you set a variable Chris Larson
2009-06-17 17:29 ` Tom Rini
2009-06-17 17:31 ` Marcin Juszkiewicz
2009-06-17 17:40 ` Rolf Leggewie
2009-06-17 17:47   ` Rolf Leggewie
2009-06-17 17:54     ` Chris Larson
2009-06-17 17:52   ` Roman I Khimov
2009-06-17 18:01 ` Richard Purdie
2009-06-17 18:08   ` Chris Larson
2009-06-17 19:08   ` Tom Rini [this message]
2009-06-18 12:43     ` Richard Purdie
2009-06-17 19:07 ` Leon Woestenberg
2009-06-17 19:11   ` Christopher Larson
2009-06-17 19:13   ` Phil Blundell
2009-06-17 19:27   ` Chris Larson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090617190830.GG15477@smtp.west.cox.net \
    --to=trini@embeddedalley.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.