diff --git a/build.sh b/build.sh index 33cd0aa..0e0df31 100755 --- a/build.sh +++ b/build.sh @@ -60,10 +60,9 @@ mksquashfs \ # Generate bootable EFI Image from refind # Copy kernel to refind -cp "$ROOTFS_PATH/boot"/vmlinuz-$ISO_KERNEL \ - "./data/refind/EFI/vmlinuz" && \ -cp "$ROOTFS_PATH/boot"/initrd.img-$ISO_KERNEL \ - "./data/refind/EFI/initrd" +mkdir -p ./data/refind/EFI +cp -vf "$ROOTFS_PATH/boot"/vmlinuz-"$ISO_KERNEL"* "./data/refind/EFI/vmlinuz" +cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL"* "./data/refind/EFI/initrd" dd if=/dev/zero of="$LIVE_BOOT_PATH/efiboot.img" bs=1 count=$(du -s -B1 ./data/refind | cut -f1) mkfs.vfat -F 32 "$LIVE_BOOT_PATH/efiboot.img"