diff --git a/.github/release-nest-v3-nvidia-iso b/.github/release-nest-v3-nvidia-iso index c793025..301160a 100644 --- a/.github/release-nest-v3-nvidia-iso +++ b/.github/release-nest-v3-nvidia-iso @@ -1 +1 @@ -7 \ No newline at end of file +8 \ No newline at end of file diff --git a/build.sh b/build.sh index af89669..ab4245d 100755 --- a/build.sh +++ b/build.sh @@ -64,6 +64,10 @@ 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" +REFIND_SIZE=$(du -s -B1 ./data/refind | cut -f1) +LIVE_SIZE=$(du -s -B1 $LIVE_BOOT_LIVE_PATH | cut -f1) +ISO_SIZE=$(($REFIND_SIZE + $LIVE_SIZE)) + # Create Refind Image dd if=/dev/zero of="$DD_BOOT_IMAGE" bs=1 count=$REFIND_SIZE mkfs.vfat -F 32 "$DD_BOOT_IMAGE"