summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-04-12 15:51:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-13 10:12:52 +0100
commit45c0763fc9c8dc247619c8a65378030a58c80874 (patch)
treef115a6645841bd8cfd9d46c52e52dc71ad6139ff /scripts/lib
parente0e5426659011e85a5272e2f7f703c1c5e874755 (diff)
downloadpoky-45c0763fc9c8dc247619c8a65378030a58c80874.tar.gz
Revert "wic/utils/partitionedfs.py: assemble .wic images as sparse files"
It turns out that dd's conv=sparse doesn't look at the file extents, but simply checks if a "block" is all zero. If the block of zero was meaningful it gets lost and if the image is subsequently written to media using a sparse-aware writer then the block of zeros won't be written at all. This reverts commit 5fd592fbae2e046bcb8c3a6c3ef4993fe0400676. (From OE-Core rev: 63d15764cc2014dba9fee2186f0c8b97c2ac5682) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 3e2b420875..5a103bbc7e 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,sparse" % \ 343 cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \
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)