]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: use truncate utility to create sparse files
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 28 Apr 2016 10:58:04 +0000 (13:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:30:55 +0000 (10:30 +0100)
commitd2d0d18dfd3922411d856b98ab6ba5d64c9c1c9f
tree8eee021923517a4e9b01d456c813860f8887e8cb
parent27fd1bb7969b558864463450e1837c4400a03f9c
wic: use truncate utility to create sparse files

Used truncate instead of dd to create wic images for the
following reasons:
 - dd doesn't preserve sparseness
 - truncate syntax is much more clear
 - dd requires additional calculations of the image size
   in blocks
 - the way dd was used in the code is not always correct.
   In some cases it was writing one block to the file which makes
   it not 100% sparse.

[YOCTO #9099]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/partition.py
scripts/lib/wic/utils/fs_related.py