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
# 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"