From 70a4693ac740ccea91465b8c4c45e39076be0243 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 9 Feb 2021 12:28:01 +0000 Subject: [PATCH] mg-debian-installer-update: Use Debian mirror selection NFC with existing config. Signed-off-by: Ian Jackson --- mg-debian-installer-update | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mg-debian-installer-update b/mg-debian-installer-update index 5e890d34..4fb4bc21 100755 --- a/mg-debian-installer-update +++ b/mg-debian-installer-update @@ -28,7 +28,13 @@ suite=$1 arch=$2 packages="$3" -site=http://ftp.debian.org/debian/ +site=$(perl -we ' + use Osstest; + use Osstest::Debian; + readglobalconfig(); + print debian_mirror_url_suite_arch($ARGV[0], $ARGV[1]) or die $!; +' "$suite" "$arch") + sbase=$site/dists/$suite src=$sbase/main/installer-$arch/current/images/netboot/ -- 2.39.5