From d670beafd912c7c300956e2fd746b88002a91789 Mon Sep 17 00:00:00 2001
From: Anupam Basak <anupam.basak27@gmail.com>
Date: Mon, 3 Jun 2024 19:04:33 +0530
Subject: [PATCH] Dont forget to download the base image

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c5c68f3..2696e95 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,9 +29,9 @@ build-zynthbox-image-armhf:
     - apt-get update
     - apt-get install -y coreutils p7zip-full qemu-user-static sudo git wget curl python3 lsof fdisk xz-utils openssh-client jq zip
 
-    # # Build custom base image with Low Latency Kernel
-    # - wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2024-03-15/2024-03-15-raspios-bookworm-armhf-lite.img.xz' -O ./raspios-${debian_release_name}-armhf-lite.img.xz
-    # - xz -dv ./raspios-${debian_release_name}-armhf-lite.img.xz
+    # Build custom base image with Low Latency Kernel
+    - wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2024-03-15/2024-03-15-raspios-bookworm-armhf-lite.img.xz' -O ./raspios-${debian_release_name}-armhf-lite.img.xz
+    - xz -dv ./raspios-${debian_release_name}-armhf-lite.img.xz
     # - sudo mount -o loop,offset=$(get_partition_start_offset root ./raspios-${debian_release_name}-armhf-lite.img),sizelimit=$(get_partition_size root ./raspios-${debian_release_name}-armhf-lite.img) ./raspios-${debian_release_name}-armhf-lite.img $mountdir
     # - sudo mount -o loop,offset=$(get_partition_start_offset boot ./raspios-${debian_release_name}-armhf-lite.img),sizelimit=$(get_partition_size boot ./raspios-${debian_release_name}-armhf-lite.img) ./raspios-${debian_release_name}-armhf-lite.img $mountdir/boot
     # - sudo mount --bind /dev $mountdir/dev
@@ -55,7 +55,7 @@ build-zynthbox-image-armhf:
     # - sudo chroot $mountdir cp /boot/config-$KERN /boot/$KERN/
     # - sudo umount $mountdir/boot/ $mountdir/dev/pts $mountdir/dev/ $mountdir/proc/ $mountdir/sys/
     # - sudo umount $mountdir
-    # - zip ./raspios-${debian_release_name}-armhf-lite.img.zip ./raspios-${debian_release_name}-armhf-lite.img
+    - zip ./raspios-${debian_release_name}-armhf-lite.img.zip ./raspios-${debian_release_name}-armhf-lite.img
 
     # Clone repositories required to generate zynthbox image
     - echo "# Clone repositories required to generate zynthbox image"
-- 
GitLab