All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] image.bbclass: remove tmp/rootfs after image creation unless you set a variable
@ 2009-06-17 17:10 Chris Larson
  2009-06-17 17:29 ` Tom Rini
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Chris Larson @ 2009-06-17 17:10 UTC (permalink / raw)
  To: openembedded-devel

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"
-- 
1.6.0




^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-06-18 12:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.