Openembedded Core Discussions
 help / color / mirror / Atom feed
* [wic][PATCH] wic: remove partition images
@ 2016-09-22  9:48 Ed Bartosh
  2016-09-23 12:10 ` [wic][PATCH v2] " Ed Bartosh
  0 siblings, 1 reply; 2+ messages in thread
From: Ed Bartosh @ 2016-09-22  9:48 UTC (permalink / raw)
  To: openembedded-core

Preserving images for every partition doubles disk space
consumed by a build. As those images are not used it's
better to remove them after assembling final image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
 scripts/lib/wic/utils/partitionedfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 46b5d34..3dbf9a6 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -351,7 +351,7 @@ class Image():
                             (source, part['num'], part['start'],
                              part['start'] + part['size'] - 1, part['size']))
 
-                os.rename(source, image_file + '.p%d' % part['num'])
+                os.unlink(source)
 
     def create(self):
         for dev in self.disks:
-- 
2.1.4



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

end of thread, other threads:[~2016-09-23 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-22  9:48 [wic][PATCH] wic: remove partition images Ed Bartosh
2016-09-23 12:10 ` [wic][PATCH v2] " Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox