Package: mmdebstrap
Version: 1.5.7-1
Severity: normal
Tags: patch

Dear Maintainer,

mmdebstrap-autopkgtest-build-qemu fails for Ubuntu releases because the
kernel package is called differently there.

The attached patch matches the solution that autopkgtest-build-qemu uses.

Best,
Christian

-- System Information:
Debian Release: 13.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.41+deb13-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mmdebstrap depends on:
ii  apt      3.0.3
ii  perl     5.40.1-6
ii  python3  3.13.5-1

Versions of packages mmdebstrap recommends:
ii  arch-test            0.22-1
ii  gpg                  2.4.7-21+b3
ii  libdistro-info-perl  1.13
ii  libdpkg-perl         1.22.21
ii  mount                2.41-5
ii  uidmap               1:4.17.4-2

Versions of packages mmdebstrap suggests:
pn  apt-transport-tor               <none>
ii  apt-utils                       3.0.3
ii  bzip2                           1.0.8-6
ii  ca-certificates                 20250419
ii  debootstrap                     1.0.141
ii  distro-info-data                0.66
ii  dpkg-dev                        1.22.21
ii  e2fsprogs                       1.47.2-3+b3
pn  fakechroot                      <none>
ii  fakeroot                        1.37.1.1-1
pn  genext2fs                       <none>
ii  libarchive13t64 [libarchive13]  3.7.4-4
pn  lz4                             <none>
ii  lzop                            1.04-2
pn  ncompress                       <none>
pn  perl-doc                        <none>
ii  qemu-user                       1:10.0.2+ds-2+deb13u1
pn  qemu-user-static                <none>
pn  squashfs-tools-ng               <none>
ii  systemd                         257.7-1
ii  xz-utils                        5.8.1-1
ii  zstd                            1.5.7+dfsg-1

-- no debconf information
From 728065589efab4436631b6497dedd2456b98597f Mon Sep 17 00:00:00 2001
From: Christian Kastner <[email protected]>
Date: Sat, 23 Aug 2025 15:57:33 +0200
Subject: [PATCH] mm-a-b-q: Install the right kernel on Ubuntu

Ubuntu uses linux-image-virtual across all architectures.

The test for "ubuntu" in the mirror URI is crude, but matches what
autopkgtest-build-qemu does.
---
 mmdebstrap-autopkgtest-build-qemu | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mmdebstrap-autopkgtest-build-qemu b/mmdebstrap-autopkgtest-build-qemu
index bb7bce0..f90125a 100755
--- a/mmdebstrap-autopkgtest-build-qemu
+++ b/mmdebstrap-autopkgtest-build-qemu
@@ -286,6 +286,10 @@ case "$ARCHITECTURE" in
     die "unsupported architecture: $ARCHITECTURE"
     ;;
 esac
+# Ubuntu uses the same settings as above, except for the kernel
+if echo "$MIRROR" | grep -q "ubuntu"; then
+  LINUXIMAGE=linux-image-virtual
+fi
 
 if test "$(dpkg-query -f '${db:Status-Status}' -W binutils-multiarch)" = installed; then
   GNU_PREFIX=
-- 
2.47.2

Reply via email to