From 96a7dee6874e16fbd151538af5b4d5c214c56c3f Mon Sep 17 00:00:00 2001
From: Arnaud Rebillout <arnaudr@kali.org>
Date: Wed, 10 Jan 2024 10:28:09 +0700
Subject: [PATCH] Bump live-build requirement

With this version, arm firmware are excluded from x86 isos, and the
other way round. In practice, it means that raspi-firmware won't be
installed on amd64 isos, and that's something we need.
---
 build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh
index f1ea441..0bcbf66 100755
--- a/build.sh
+++ b/build.sh
@@ -227,8 +227,8 @@ case "$IMAGE_TYPE" in
 		fi
 
 		ver_live_build=$(dpkg-query -f '${Version}' -W live-build)
-		if dpkg --compare-versions "$ver_live_build" lt "1:20230131+kali5"; then
-			echo "ERROR: You need live-build (>= 1:20230131+kali5), you have $ver_live_build" >&2
+		if dpkg --compare-versions "$ver_live_build" lt "1:20230502+kali3"; then
+			echo "ERROR: You need live-build (>= 1:20230502+kali3), you have $ver_live_build" >&2
 			exit 1
 		fi
 		debug "ver_live_build: $ver_live_build"