oe/image: use apparent size of artifacts, not disk usage
PATCH 1/1 oe/image: use apparent size of artifacts, not disk usage
When collecting the size of the root file system get the apparent size of the files not the actual disk usage, as disk usage on the host file system can be affected by file system compression or sparse files.
[ YOCTO #8430 ]
Signed-off-by Ross Burton <[email protected]>
--- meta/lib/oe/image.py | 1 + 1 file changed, 1 insertion(+)
meta/lib/oe/image.py +1 -0
@@ -164,6 +164,7 @@ class Image(ImageDepGraph): rootfs_maxsize = self.d.getVar('IMAGE_ROOTFS_MAXSIZE', True) output = subprocess.check_output(['du', '-ks', + '--apparent-size', self.d.getVar('IMAGE_ROOTFS', True)]) size_kb = int(output.split()[0]) base_size = size_kb * overhead_factor
Signature · 1 line
2.1.4