diff --git a/build/build-temp-vm-uefi-iso.sh b/build/build-temp-vm-uefi-iso.sh index 745959bb..911f635c 100755 --- a/build/build-temp-vm-uefi-iso.sh +++ b/build/build-temp-vm-uefi-iso.sh @@ -70,14 +70,16 @@ echo "Rebuilding kernel..." qemu-system-x86_64 -machine q35,accel=kvm -drive format=raw,file=$TMPDISK -m 1G -rtc base=localtime -device isa-debug-exit mount_tempdisk -sudo cp -r $TMPMOUNT $TMPISODIR sudo cp limine/limine-cd-efi.bin $TMPISODIR/ sudo cp limine/limine-cd.bin $TMPISODIR/ sudo cp limine/limine.sys $TMPISODIR/ sudo cp $TMPMOUNT/limine.cfg $TMPISODIR/limine.cfg -sudo cp ../zealbooter/zealbooter.elf $TMPISODIR/Boot/ZealBooter.ELF +sudo cp -rf $TMPMOUNT/* $TMPISODIR +sudo cp -rf ../zealbooter/zealbooter.elf $TMPISODIR/Boot/ZealBooter.ELF umount_tempdisk +sudo ls $TMPISODIR -al + xorriso -as mkisofs -b limine-cd.bin \ -no-emul-boot -boot-load-size 4 -boot-info-table \ --efi-boot limine-cd-efi.bin \ @@ -101,5 +103,6 @@ qemu-system-x86_64 -machine q35,accel=kvm -m 1G -rtc base=localtime -bios ovmf/O echo "Deleting temp folder..." sudo rm -rf $TMPDIR +sudo rm -rf $TMPISODIR echo "Finished."