From 588df83d1b687756f6ab2caa020f64c2efa32deb Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 16 Jan 2020 13:42:08 +0100 Subject: [PATCH] make_mirror.sh: select kernel image depending on host architecture --- make_mirror.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index 821f01e..cb8d758 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -408,10 +408,22 @@ if [ "$HAVE_QEMU" = "yes" ]; then tmpdir="$(mktemp -d)" trap "cleanuptmpdir; cleanup_newcachedir" EXIT INT TERM - pkgs=perl-doc,linux-image-amd64,systemd-sysv,perl,arch-test,fakechroot,fakeroot,mount,uidmap,qemu-user-static,binfmt-support,qemu-user,dpkg-dev,mini-httpd,libdevel-cover-perl,debootstrap,procps,apt-cudf,aspcud,squashfs-tools-ng + pkgs=perl-doc,systemd-sysv,perl,arch-test,fakechroot,fakeroot,mount,uidmap,qemu-user-static,binfmt-support,qemu-user,dpkg-dev,mini-httpd,libdevel-cover-perl,debootstrap,procps,apt-cudf,aspcud,squashfs-tools-ng if [ "$HAVE_PROOT" = "yes" ]; then pkgs="$pkgs,proot" fi + case "$HOSTARCH" in + amd64|arm64|i386) + pkgs="$pkgs,linux-image-$HOSTARCH" + ;; + ppc64el) + pkgs="$pkgs,linux-image-powerpc64le" + ;; + *) + echo "no kernel image for $HOSTARCH" >&2 + exit 1 + ;; + esac if [ "$HOSTARCH" = amd64 ] && [ "$RUN_MA_SAME_TESTS" = "yes" ]; then arches=amd64,armhf pkgs="$pkgs,libfakechroot:armhf,libfakeroot:armhf"