diff options
author | Joshua Lock <joshua.lock@collabora.co.uk> | 2016-04-08 10:14:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-09 23:00:45 +0100 |
commit | 29bc2f74239bc98a152605c339b8a4fb0a15705b (patch) | |
tree | 5900e5579fec4fceaa8c58340e507bb8f8609acc /scripts/lib/wic | |
parent | 7fdb0618cf2c2cfa5cb4540036610b8ce3a7bb2f (diff) | |
download | poky-29bc2f74239bc98a152605c339b8a4fb0a15705b.tar.gz |
wic/utils/partitionedfs.py: assemble .wic images as sparse files
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]
(From OE-Core rev: 5fd592fbae2e046bcb8c3a6c3ef4993fe0400676)
Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 5a103bbc7e..3e2b420875 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
@@ -340,7 +340,7 @@ class Image(object): | |||
340 | source = part['source_file'] | 340 | source = part['source_file'] |
341 | if source: | 341 | if source: |
342 | # install source_file contents into a partition | 342 | # install source_file contents into a partition |
343 | cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \ | 343 | cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc,sparse" % \ |
344 | (source, image_file, self.sector_size, | 344 | (source, image_file, self.sector_size, |
345 | part['start'], part['size']) | 345 | part['start'], part['size']) |
346 | exec_cmd(cmd) | 346 | exec_cmd(cmd) |