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 07:54:29 +0100 |
commit | 5fd592fbae2e046bcb8c3a6c3ef4993fe0400676 (patch) | |
tree | ca6ebe41eb76012f56eb58a73d63b30ff08de4c2 /scripts/lib | |
parent | 4aa8f67867a05bdf4a5ba90c8235740910662847 (diff) | |
download | openembedded-core-5fd592fbae2e046bcb8c3a6c3ef4993fe0400676.tar.gz openembedded-core-5fd592fbae2e046bcb8c3a6c3ef4993fe0400676.tar.bz2 openembedded-core-5fd592fbae2e046bcb8c3a6c3ef4993fe0400676.zip |
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]
Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-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): 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) |