Skip to contentSkip to conversation

oe/image: use apparent size of artifacts, not disk usage

PATCH New Ross Burton 1 participant 1 message Oct 8, 2015

lore
Share & tools
lore
#0 lore raw

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 ]

---
 meta/lib/oe/image.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oe/image.py +1 -0
index b0d81a6..9199e36 100644
@@ -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