Update build.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-10 18:05:48 +02:00
parent cf16e258cb
commit 9cbb1debe0

View File

@ -60,10 +60,9 @@ mksquashfs \
# Generate bootable EFI Image from refind # Generate bootable EFI Image from refind
# Copy kernel to refind # Copy kernel to refind
cp "$ROOTFS_PATH/boot"/vmlinuz-$ISO_KERNEL \ mkdir -p ./data/refind/EFI
"./data/refind/EFI/vmlinuz" && \ cp -vf "$ROOTFS_PATH/boot"/vmlinuz-"$ISO_KERNEL"* "./data/refind/EFI/vmlinuz"
cp "$ROOTFS_PATH/boot"/initrd.img-$ISO_KERNEL \ cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL"* "./data/refind/EFI/initrd"
"./data/refind/EFI/initrd"
dd if=/dev/zero of="$LIVE_BOOT_PATH/efiboot.img" bs=1 count=$(du -s -B1 ./data/refind | cut -f1) 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" mkfs.vfat -F 32 "$LIVE_BOOT_PATH/efiboot.img"