The problem is, that the size computation is IMHO done 'too early' (see https://review.openstack.org/#/c/512085) - and here some disk space is used during the finalize-phase.
As a (temporary) work-around I'd suggest using 'disk-image-create --image-size 5 ...' or similar.
After fixing this, the image creation fails with:
2017-11-01 19:38:08.814 | /tmp/in_target.d/finalise.d/80-fedora-atomic: line 29: DIB_IMAGE_ROOT_FS_UUID: unbound variable
The 'new' block level layer does currently not provide the UUID of the root partition. For other proposes the LABEL is used which is stored in DIB_ROOT_LABEL.
If you really need the UUID here, you need to patch
diskimage-builder/diskimage_builder/block_device/blockdevice.py line 285ff
and add a block similar to root-label; adapt
diskimage-builder/diskimage_builder/lib/disk-image-create
similar to line 309ff to store the result in a variable.
Sorry, but IMHO also #1719102 is something completely different; I'd open a new bug.
In the meantime:
When using fedora 25, it fails in first place with:
2017-11-01 19:04:44.530 | + ostree admin os-init fedora-atomic deploy/ fedora- atomic initialized as OSTree root verify= false fedora-atomic https:/ /kojipkgs. fedoraproject. org/atomic/ 25/ d7b03ca5c7a9382 dbb8adfd23eb97c f603d1091c24d18 22cb space-percent '3%' would be exceeded, 13.7 MB more required
2017-11-01 19:04:44.538 | ostree/
2017-11-01 19:04:44.539 | + ostree remote add --set=gpg-
2017-11-01 19:04:44.548 | + ostree pull fedora-atomic 721fddd24ca1e4c
2017-11-01 19:09:24.669 | error: min-free-
The problem is, that the size computation is IMHO done 'too early' (see https:/ /review. openstack. org/#/c/ 512085) - and here some disk space is used during the finalize-phase.
As a (temporary) work-around I'd suggest using 'disk-image-create --image-size 5 ...' or similar.
After fixing this, the image creation fails with:
2017-11-01 19:38:08.814 | /tmp/in_ target. d/finalise. d/80-fedora- atomic: line 29: DIB_IMAGE_ ROOT_FS_ UUID: unbound variable
The 'new' block level layer does currently not provide the UUID of the root partition. For other proposes the LABEL is used which is stored in DIB_ROOT_LABEL.
If you really need the UUID here, you need to patch builder/ diskimage_ builder/ block_device/ blockdevice. py line 285ff builder/ diskimage_ builder/ lib/disk- image-create
diskimage-
and add a block similar to root-label; adapt
diskimage-
similar to line 309ff to store the result in a variable.