Skip to content

Commit

Permalink
increase efi part size
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph committed Aug 15, 2021
1 parent b5c17b6 commit 76bcad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/efi-iso.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY ["${IMAGE_NAME}-linux.efi", "/work/"]

RUN mkdir -p /work/iso/boot && \
efi_file_size=$(stat -c %s "/work/${IMAGE_NAME}-linux.efi") && \
efi_part_size=$((efi_file_size / 1024 / 1024 + 4)) && \
efi_part_size=$((efi_file_size / 1024 / 1024 + 32)) && \
dd if=/dev/zero of=/work/iso/boot/efiboot.img bs=1M count=${efi_part_size} && \
mkfs.vfat /work/iso/boot/efiboot.img && \
mmd -i /work/iso/boot/efiboot.img efi efi/boot && \
Expand Down

0 comments on commit 76bcad6

Please sign in to comment.