Browse Source

Merge pull request #38323 from nostrad/fix-deb-security-check

mkimage: Fix Debian security presence check
Sebastiaan van Stijn 6 years ago
parent
commit
edf5134ba7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/mkimage/debootstrap

+ 1 - 1
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 "