From 8db540370c9e02b1bddc34d0f567d9563fb0c776 Mon Sep 17 00:00:00 2001 From: Mattias Jernberg Date: Wed, 5 Dec 2018 19:35:17 +0100 Subject: [PATCH] mkimage: Fix Debian security presence check Add Location following since security redirects to security-cdn and caused the repository to be added on Debian unstable. Signed-off-by: Mattias Jernberg --- contrib/mkimage/debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mkimage/debootstrap b/contrib/mkimage/debootstrap index 9f7d8987ad..a919429b0b 100755 --- a/contrib/mkimage/debootstrap +++ b/contrib/mkimage/debootstrap @@ -193,7 +193,7 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then case "$lsbDist" in debian) # updates and security! - if curl -o /dev/null -s --head --fail "http://security.debian.org/dists/$suite/updates/main/binary-$(rootfs_chroot dpkg --print-architecture)/Packages.gz"; then + if curl -o /dev/null -s --head --location --fail "http://security.debian.org/dists/$suite/updates/main/binary-$(rootfs_chroot dpkg --print-architecture)/Packages.gz"; then ( set -x sed -i "