1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #13326 from tianon/squeeze-lts

Fix "squeeze" detection in contrib/mkimage/debootstrap
This commit is contained in:
Jessie Frazelle 2015-05-20 17:41:27 -07:00
commit 366fe46c6a

View file

@ -176,12 +176,20 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then
s/ $suite / ${suite}-updates /
" "$rootfsDir/etc/apt/sources.list"
echo "deb http://security.debian.org $suite/updates main" >> "$rootfsDir/etc/apt/sources.list"
# LTS
if [ "$suite" = 'squeeze' -o "$suite" = 'oldstable' ]; then
# squeeze-lts
if [ -f "$rootfsDir/etc/debian_version" ]; then
ltsSuite=
case "$(cat "$rootfsDir/etc/debian_version")" in
6.*) ltsSuite='squeeze-lts' ;;
#7.*) ltsSuite='wheezy-lts' ;;
#8.*) ltsSuite='jessie-lts' ;;
esac
if [ "$ltsSuite" ]; then
head -1 "$rootfsDir/etc/apt/sources.list" \
| sed "s/ $suite / squeeze-lts /" \
| sed "s/ $suite / $ltsSuite /" \
>> "$rootfsDir/etc/apt/sources.list"
fi
fi
)
fi
;;