Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] wic/utils/partitionedfs.py: assemble .wic images as sparse files
@ 2016-04-08  9:14 Joshua Lock
  2016-04-08  9:14 ` [PATCH 2/2] oeqa/selftest/wic: add test case for sparse images Joshua Lock
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Joshua Lock @ 2016-04-08  9:14 UTC (permalink / raw)
  To: openembedded-core; +Cc: Joshua Lock

From: Joshua Lock <joshua.lock@collabora.co.uk>

The individual partitions created by wic are sparse but without
this change the assembled image is written as one (potentially
very) large file.

Preserve sparseness in the assembled image by passing the sparse
conversion symbol.

[YOCTO #9099]

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
---
 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 5a103bb..3e2b420 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -340,7 +340,7 @@ class Image(object):
             source = part['source_file']
             if source:
                 # install source_file contents into a partition
-                cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \
+                cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc,sparse" % \
                       (source, image_file, self.sector_size,
                        part['start'], part['size'])
                 exec_cmd(cmd)
-- 
2.5.5



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

end of thread, other threads:[~2016-04-12 11:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08  9:14 [PATCH 1/2] wic/utils/partitionedfs.py: assemble .wic images as sparse files Joshua Lock
2016-04-08  9:14 ` [PATCH 2/2] oeqa/selftest/wic: add test case for sparse images Joshua Lock
2016-04-09 10:36 ` [PATCH 1/2] wic/utils/partitionedfs.py: assemble .wic images as sparse files Alexander Kanevskiy
2016-04-09 16:41   ` Philip Balister
2016-04-11 11:52     ` Alexander Kanevskiy
2016-04-12 11:55   ` Burton, Ross
2016-04-10 14:34 ` Robert Yang

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