Package: mmdebstrap
Version: 1.5.0-2
Severity: normal
Tags: patch
With --architecture=armhf, mmdebstrap-autopkgtest-build-qemu fails with
"E: Unable to locate package linux-image-armhf". The following patch
fixes that.
i386 has a similar problem, and I included a fix for that in this patch
too, though I haven't tested that.
After this, armhf still fails with:
arm-linux-gnueabihf-objdump: /usr/lib/systemd/boot/efi/linuxarm.efi.stub:
file format not recognized
failed to discover the alignment of the efi stub
... but that's a separate problem.
--- /usr/bin/mmdebstrap-autopkgtest-build-qemu 2024-05-14 06:39:00.000000000
+0100
+++ mmdebstrap-autopkgtest-build-qemu 2024-06-17 11:17:34.619003852 +0100
@@ -235,26 +235,31 @@
EFIIMG=bootx64.efi
QEMUARCH=x86_64
VMFPKG=ovmf
+ LINUXIMAGE=linux-image-amd64
;;
arm64)
EFIIMG=bootaa64.efi
QEMUARCH=aarch64
VMFPKG=qemu-efi-aarch64
+ LINUXIMAGE=linux-image-arm64
;;
armhf)
EFIIMG=bootarm.efi
QEMUARCH=arm
VMFPKG=qemu-efi-arm
+ LINUXIMAGE=linux-image-armmp
;;
i386)
EFIIMG=bootia32.efi
QEMUARCH=i386
VMFPKG=ovmf-ia32
+ LINUXIMAGE=linux-image-rt-686-pae
;;
riscv64)
EFIIMG=bootriscv64.efi
QEMUARCH=riscv64
VMFPKG=
+ LINUXIMAGE=linux-image-riscv64
;;
*)
die "unsupported architecture: $ARCHITECTURE"
@@ -344,7 +349,7 @@
set -- "$@" --hook-dir=/usr/share/mmdebstrap/hooks/jessie-or-older
set -- "$@" \
- "--include=init,linux-image-$ARCHITECTURE,python3" \
+ "--include=init,$LINUXIMAGE,python3" \
'--customize-hook=echo host >"$1/etc/hostname"' \
'--customize-hook=echo 127.0.0.1 localhost host >"$1/etc/hosts"' \
'--customize-hook=passwd --root "$1" --delete root' \
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: riscv64, armhf
Kernel: Linux 6.6.15-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB: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 2.9.3
ii perl 5.38.2-5
ii python3 3.11.8-1
Versions of packages mmdebstrap recommends:
ii arch-test 0.21-1
ii fakechroot 2.20.1+ds-17
ii fakeroot 1.33-1
ii gpg 2.2.43-7
ii libdistro-info-perl 1.7
ii libdpkg-perl 1.22.6
ii mount 2.40.1-8.1
ii uidmap 1:4.13+dfsg1-5
Versions of packages mmdebstrap suggests:
pn apt-transport-tor <none>
ii apt-utils 2.9.3
ii binfmt-support 2.2.2-7
ii ca-certificates 20240203
ii debootstrap 1.0.134
ii distro-info-data 0.62
ii dpkg-dev 1.22.6
ii genext2fs 1.5.0-3+b1
ii perl-doc 5.38.2-5
pn qemu-user <none>
ii qemu-user-static 1:8.2.4+ds-1
pn squashfs-tools-ng <none>
ii systemd 256-1
-- no debconf information
Thanks,
--
Colin Watson (he/him) [[email protected]]