Building encrypted minimized or squashfs images was failing
at the 'dd' command in 'insert_partition' with the
error 'No space left on device'.
Increasing the luks overhead from 2MB to 16MB allows enough space.
16MB was found to be the smallest overhead which wouldn't fail.
last_partition_sector = GPT_HEADER_SIZE
blob_size = roundup512(os.stat(blob.name).st_size)
- luks_extra = 2 * 1024 * 1024 if args.encrypt == "all" else 0
+ luks_extra = 16 * 1024 * 1024 if args.encrypt == "all" else 0
new_size = last_partition_sector + blob_size + luks_extra + GPT_FOOTER_SIZE
MkosiPrinter.print_step(f"Resizing disk image to {format_bytes(new_size)}...")