Closed Sunderland93 closed 12 months ago
Seems like error in tmp/amd64/chroot/binary.sh
script, which is generated by lb binary_grub-efi
stage
I wrote simple patch that fix this error for me. It increases number of blocks for creating efi.img:
--- /usr/lib/live/build/binary_grub-efi 2023-02-19 00:09:59.711144321 +0400
+++ /usr/lib/live/build/binary_grub-efi.orig 2023-02-19 00:10:30.827749004 +0400
@@ -255,7 +255,7 @@
# directories: EFI EFI/boot boot boot/grub
size=\$((\$size + 4096 * 4))
-blocks=\$(((\$size / 1024 + 55) / 32 * 32 ))
+blocks=\$(((\$size / 1024 + 1540) / 32 * 32 ))
rm -f ${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img
# The VOLID must be (truncated to) a 32bit hexadecimal number
I wrote simple patch that fix this error for me. It increases number of blocks for creating efi.img
Thank you for providing the patch. I had encountered the same issue and had worked around it by forcing a larger size for the efi.img file. However, since your solution use a better approach and fix the issue in a cleaner way, I tried it out and the build completed successfully.
Hello. I try to build ElementaryOS on Docker (host distro is Ubuntu 22.04), but builder is failed with following error:
Disk space is more than enough (about 150G)