efi boot was not working, hope this will fix it

This commit is contained in:
Marcus 2023-05-01 16:53:31 +02:00
parent ac4f4932cb
commit e47e91b8c7

View file

@ -324,7 +324,7 @@ cp /usr/lib/ISOLINUX/isolinux.bin "build/staging/isolinux/" || error
cp /usr/lib/syslinux/modules/bios/* "build/staging/isolinux/" || error cp /usr/lib/syslinux/modules/bios/* "build/staging/isolinux/" || error
message "copy grub-efi" message "copy grub-efi"
cp -r /usr/lib/grub/x86_64-efi/* "build/staging/boot/grub/x86_64-efi/" cp -r /usr/lib/grub/x86_64-efi/* "build/staging/boot/grub/x86_64-efi/" || error
message "make efi images" message "make efi images"
grub-mkstandalone -O i386-efi \ grub-mkstandalone -O i386-efi \
@ -333,7 +333,7 @@ grub-mkstandalone -O i386-efi \
--themes="" \ --themes="" \
--fonts="" \ --fonts="" \
--output="build/staging/EFI/BOOT/BOOTIA32.EFI" \ --output="build/staging/EFI/BOOT/BOOTIA32.EFI" \
"boot/grub/grub.cfg=build/tmp/grub-embed.cfg" "boot/grub/grub.cfg=build/tmp/grub-embed.cfg" || error
grub-mkstandalone -O x86_64-efi \ grub-mkstandalone -O x86_64-efi \
--modules="part_gpt part_msdos fat iso9660" \ --modules="part_gpt part_msdos fat iso9660" \
@ -341,18 +341,18 @@ grub-mkstandalone -O x86_64-efi \
--themes="" \ --themes="" \
--fonts="" \ --fonts="" \
--output="build/staging/EFI/BOOT/BOOTx64.EFI" \ --output="build/staging/EFI/BOOT/BOOTx64.EFI" \
"boot/grub/grub.cfg=build/tmp/grub-embed.cfg" "boot/grub/grub.cfg=build/tmp/grub-embed.cfg" || error
(cd build/staging && \ (cd build/staging && \
dd if=/dev/zero of=efiboot.img bs=1M count=20 && \ dd if=/dev/zero of=efiboot.img bs=1M count=20 && \
mkfs.vfat efiboot.img && \ mkfs.vfat efiboot.img && \
mmd -i efiboot.img ::/EFI ::/EFI/BOOT && \ mmd -i efiboot.img ::/EFI ::/EFI/BOOT && \
mcopy -vi efiboot.img \ mcopy -vi efiboot.img \
build/staging/EFI/BOOT/BOOTIA32.EFI \ ../../build/staging/EFI/BOOT/BOOTIA32.EFI \
build/staging/EFI/BOOT/BOOTx64.EFI \ ../../build/staging/EFI/BOOT/BOOTx64.EFI \
build/staging/boot/grub/grub.cfg \ ../../build/staging/boot/grub/grub.cfg \
::/EFI/BOOT/ ::/EFI/BOOT/
) ) || error
message "generate .iso" message "generate .iso"
xorriso \ xorriso \