ERROR: core-image-minimal-1.0-r0 do_image_wic: ExecutionError('build/tmp/work/.../core-image-minimal/1.0/temp/run.do_image_wic.1471812', 1, None, None) ... | Writing inode tables: done | Creating journal (4096 blocks): done | Copying files into the device: __populate_fs: Could not allocate block in ext2 filesystem while writing file "cc1" | mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system | 512 | | WARNING: exit code 1 from a shell command.
Not related to free space in image size. Tested with:
IMAGE_ROOTFS_EXTRA_SPACE:append = " + 150000" IMAGE_OVERHEAD_FACTOR = "2"
Conclusions:
wic
image. image.bbclass
was fixed to correctly calculate sizes on compressed ZFS:do_image_wic
.du
returns real disc usage (135649) (on compressed ZFS) instead of data size (250920).–apparent-size
fixes the issue (du_cmd = “du -bks %s –apparent-size” % rootfs_dir
)