Browse code

Update contrib/mkimage/debootstrap to account for Debian LTS changes

See https://www.debian.org/News/2016/20160425 and https://wiki.debian.org/LTS/Using for more details.

> For Debian 7 "Wheezy" LTS there will be no requirement to add a separate wheezy-lts suite to your sources.list any more. In fact you will not notice the switch to LTS because after the official security support by the Debian Security Team ends, security updates will be provided via security.debian.org 's wheezy/updates.

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>

Tianon Gravi authored on 2016/04/28 02:55:45
Showing 1 changed files
... ...
@@ -176,20 +176,6 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then
176 176
 						s/ $suite / ${suite}-updates /
177 177
 					" "$rootfsDir/etc/apt/sources.list"
178 178
 					echo "deb http://security.debian.org $suite/updates main" >> "$rootfsDir/etc/apt/sources.list"
179
-					# squeeze-lts
180
-					if [ -f "$rootfsDir/etc/debian_version" ]; then
181
-						ltsSuite=
182
-						case "$(cat "$rootfsDir/etc/debian_version")" in
183
-							6.*) ltsSuite='squeeze-lts' ;;
184
-							#7.*) ltsSuite='wheezy-lts' ;;
185
-							#8.*) ltsSuite='jessie-lts' ;;
186
-						esac
187
-						if [ "$ltsSuite" ]; then
188
-							head -1 "$rootfsDir/etc/apt/sources.list" \
189
-								| sed "s/ $suite / $ltsSuite /" \
190
-									>> "$rootfsDir/etc/apt/sources.list"
191
-						fi
192
-					fi
193 179
 				)
194 180
 			fi
195 181
 			;;