Skip to content

Commit

Permalink
fix(build.sh): generate efiboot.img
Browse files Browse the repository at this point in the history
  • Loading branch information
mvallim authored Sep 2, 2024
1 parent 9bfda7f commit 6e24152
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,12 @@ EOF
cd isolinux && \
dd if=/dev/zero of=efiboot.img bs=1M count=10 && \
sudo mkfs.vfat efiboot.img && \
LOOP_DEVICE=`losetup --find --show $PWD/efiboot.img` && \
mkdir efi && \
sudo mount efiboot.img efi && \
sudo grub-install --efi-directory=efi --uefi-secure-boot --removable --no-nvram && \
sudo umount efi && \
sudo mount $LOOP_DEVICE efi && \
sudo grub-install --efi-directory=efi --uefi-secure-boot --removable --no-nvram $LOOP_DEVICE && \
sudo umount $LOOP_DEVICE && \
sudo losetup --detach $LOOP_DEVICE && \
rm -rf efi
)

Expand Down

0 comments on commit 6e24152

Please sign in to comment.