OSInside / kiwi

KIWI - Appliance Builder Next Generation
https://osinside.github.io/kiwi
GNU General Public License v3.0
282 stars 142 forks source link

KiwiCommandError: mcopy: stderr: Disk full #2577

Closed MouseZhangZh closed 3 days ago

MouseZhangZh commented 2 weeks ago

Problem description

I encountered this error when making an image(KDE-Live) with kiwi-build (https://pagure.io/fedora-kiwi-descriptions/tree/rawhide), image

Expected behaviour

... qemu create xxxxx 20M ... KiwiCommandError: mcopy: stderr: Disk full

Steps to reproduce the behaviour

  1. clone fedora-kiwi-descriptions and && cd fedora-kiwi-descriptions
  2. sudo ./kiwi-build --debug --image-type=iso --image-profile=KDE-Live --output-dir ./outdir (Just follow README)
  3. KiwiCommandError: mcopy: stderr: Disk full
  4. modify EFI_FAT_IMAGE_SIZE from 20 to 31 https://github.com/OSInside/kiwi/blob/7f317a5d0aed26bd9a7db75f2e1230e5c8c26fdf/kiwi/bootloader/config/grub2.py#L969
  5. it works

ps. why change EFI_FAT_IMAGE_SIZE to 31?

image

OS and Software information

schaefi commented 3 days ago

I believe we clarified this issue on the matrix chat. In you particular case you can add the following to your image description

<type ... efifatimagesize="31" .../>

The eltorito limitation still persists and I could not yet find a way to overcome it. We had some conversations with Dan and I reading through the UEFI spec which says if we put the EFI partition to the end and specify a boot-load-size of 0 it would read until the end of the blockdevice, but all these tests failed for me so far.

Maybe we find a way to overcome the eltorito load size limit in the future