add support for debian 11 (bullseye).

This commit is contained in:
Christoph 2021-09-04 21:05:29 +02:00
parent fd1058d81c
commit 3cfd408678

View File

@ -1723,10 +1723,28 @@ if [[ "$LXC_DIST" = "debian" ]]; then
deb http://ftp.de.debian.org/debian/ $LXC_RELEASE main non-free contrib
deb-src http://ftp.de.debian.org/debian/ $LXC_RELEASE main non-free contrib
EOF
if [[ "$LXC_RELEASE" = 'buster' ]] \
|| [[ "$LXC_RELEASE" = 'stretch' ]] \
|| [[ "$LXC_RELEASE" = 'jessie' ]] \
|| [[ "$LXC_RELEASE" = 'wheezy' ]] ; then
cat << EOF >> ${LXC_CONTAINER_DIR}/rootfs/etc/apt/sources.list 2> $err_msg
deb http://security.debian.org/ $LXC_RELEASE/updates main contrib non-free
deb-src http://security.debian.org/ $LXC_RELEASE/updates main contrib non-free
EOF
else
cat << EOF >> ${LXC_CONTAINER_DIR}/rootfs/etc/apt/sources.list 2>> $err_msg
deb http://security.debian.org/debian-security ${LXC_RELEASE}-security main contrib non-free
deb-src http://security.debian.org/debian-security ${LXC_RELEASE}-security main contrib non-free
EOF
cat << EOF >> ${LXC_CONTAINER_DIR}/rootfs/etc/apt/sources.list 2>> $err_msg
# $LXC_RELEASE-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ $LXC_RELEASE-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ $LXC_RELEASE-updates main contrib non-free
@ -1736,10 +1754,11 @@ deb http://ftp.de.debian.org/debian/ $LXC_RELEASE-backports main contrib non-fre
deb-src http://ftp.de.debian.org/debian/ $LXC_RELEASE-backports main contrib non-free
EOF
fi
else
cat << EOF > ${LXC_CONTAINER_DIR}/rootfs/etc/apt/sources.list 2> $err_msg
cat << EOF > ${LXC_CONTAINER_DIR}/rootfs/etc/apt/sources.list 2>> $err_msg
# Generated by distrobuilder
deb http://archive.ubuntu.com/ubuntu $LXC_RELEASE main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu $LXC_RELEASE-updates main restricted universe multiverse