[oe-commits] [openembedded-core] 07/09: wic/utils/partitionedfs.py: assemble .wic images as sparse files

git at git.openembedded.org git at git.openembedded.org
Sat Apr 9 07:00:59 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 5fd592fbae2e046bcb8c3a6c3ef4993fe0400676
Author: Joshua Lock <joshua.lock at collabora.co.uk>
AuthorDate: Fri Apr 8 10:14:18 2016 +0100

    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 at collabora.co.uk>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list