From d760fac413ddb077cc96d528c3ccb73a3ff22457 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Wed, 5 Mar 2025 11:25:33 +0100
Subject: tests: i386 no longer has a linux kernel

Enable amd64 for i386 in current releases.
---
 tests/create-and-run.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/create-and-run.sh b/tests/create-and-run.sh
index 2553a21..1d0a56d 100755
--- a/tests/create-and-run.sh
+++ b/tests/create-and-run.sh
@@ -28,6 +28,16 @@ if test "$ARCHITECTURE" = armel; then
 	# Booting an armel kernel on qemu is next to impossible.
 	ARCHITECTURE=armel,armhf
 fi
+if test "$ARCHITECTURE" = i386; then
+	case "$RELEASE" in
+		jessie|stretch|buster|bullseye|bookworm)
+		;;
+		*)
+			# i386 no longer has a kernel
+			ARCHITECTURE=i386,amd64
+		;;
+	esac
+fi
 case "$RELEASE" in
 	jessie|stretch)
 		MIRROR=http://archive.debian.org/debian
-- 
cgit v1.2.3