meta data for this page
  •  

This is an old revision of the document!


Could not allocate block

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"
  • It is related to build on ZFS. In this case LXC on Proxmox's LXC.
  • It works before.
  • It works for another (bigger) image.

Task do_image_wic.

mkfs.ext4 is invoked with:

  • -i 8192 bytes-per-inode
build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo \
mkfs.ext4 \
-F \
-i 8192 \ 
-E hash_seed=6b246d08-69fc-539c-9b53-fafae8bf9e97 \
build/tmp/work/.../core-image-minimal/1.0/tmp-wic/rootfs_rootfs.3.ext4 \
-L rootfs \
-U f99cacb6-1bd4-4812-855a-cfdf5be46520 \
-d build/tmp/work/.../core-image-minimal/1.0/tmp-wic/rootfs3 \
returned '1' instead of 0

| output: mke2fs 1.47.0 (5-Feb-2023)
| Discarding device blocks: done         
| Creating filesystem with 189652 1k blocks and 23616 inodes
| Filesystem UUID: f99cacb6-1bd4-4812-855a-cfdf5be46520
| Superblock backups stored on blocks:
| 	8193, 24577, 40961, 57345, 73729
| 
| Allocating group tables: done 
| 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.