summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Sprickerhof <git@jochen.sprickerhof.de>2023-05-08 13:32:07 +0200
committerJochen Sprickerhof <git@jochen.sprickerhof.de>2023-06-24 11:05:33 +0200
commitd1e2c48b9b3965a5acb37c4f404c6d5691a26d3c (patch)
treee47aa25764174eb082e8f9dc47e6d37112bba0e3
parentc7325e9f97142c418997721579ad943445b3bba2 (diff)
downloaddebvm-d1e2c48b9b3965a5acb37c4f404c6d5691a26d3c.tar.gz
Fix ports mirror (tested on riscv64)
-rw-r--r--.gitlab-ci.yml3
-rwxr-xr-xtests/create-and-run.sh7
2 files changed, 7 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e8b7754..5aa17d1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,11 +41,12 @@ arch_test:
- mips64el
- mipsel
- ppc64el
+ - riscv64
- s390x
script:
- test -e /proc/sys/fs/binfmt_misc/status || mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
- apt-get update
- apt-get dist-upgrade --yes
- - apt-get --no-install-recommends --yes install e2fsprogs genext2fs mmdebstrap openssh-client qemu-system arch-test qemu-user-static file systemd dpkg-dev
+ - apt-get --no-install-recommends --yes install e2fsprogs genext2fs mmdebstrap openssh-client qemu-system arch-test qemu-user-static file systemd dpkg-dev debian-ports-archive-keyring
- /lib/systemd/systemd-binfmt
- PATH=$(pwd)/bin:$PATH ./tests/create-and-run.sh "$ARCHITECTURE" sid
diff --git a/tests/create-and-run.sh b/tests/create-and-run.sh
index 392a691..10b2eff 100755
--- a/tests/create-and-run.sh
+++ b/tests/create-and-run.sh
@@ -20,17 +20,20 @@ cleanup() {
trap cleanup EXIT INT TERM QUIT
ssh-keygen -f "$SSH_KEYPATH" -N ''
+MIRROR=
case "$ARCHITECTURE" in
# Booting an armel kernel on qemu is next to impossible.
armel) ARCHITECTURE=armel,armhf ;;
+ alpha|arc|hppa|hurd-i386|ia64|kfreebsd-amd64|kfreebsd-i386|m68k|powerpc|ppc64|riscv64|sh4|sparc64|x32)
+ MIRROR="deb [signed-by=/usr/share/keyrings/debian-ports-archive-keyring.gpg] http://deb.debian.org/debian-ports $RELEASE main"
+ ;;
esac
-MIRROR=
case "$RELEASE" in
jessie|stretch)
MIRROR=http://archive.debian.org/debian
;;
esac
-debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -- --architectures="$ARCHITECTURE" $MIRROR
+debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -- --architectures="$ARCHITECTURE" "$MIRROR"
SSH_PORT=2222
timeout 300s debvm-run -s "$SSH_PORT" -i "$IMAGE" &