add support for debian 11 (bullseye).
This commit is contained in:
parent
fd1058d81c
commit
3cfd408678
@ -1723,10 +1723,28 @@ if [[ "$LXC_DIST" = "debian" ]]; then
|
|||||||
|
|
||||||
deb http://ftp.de.debian.org/debian/ $LXC_RELEASE main non-free contrib
|
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
|
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 http://security.debian.org/ $LXC_RELEASE/updates main contrib non-free
|
||||||
deb-src 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'
|
# $LXC_RELEASE-updates, previously known as 'volatile'
|
||||||
deb http://ftp.de.debian.org/debian/ $LXC_RELEASE-updates main contrib non-free
|
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
|
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
|
deb-src http://ftp.de.debian.org/debian/ $LXC_RELEASE-backports main contrib non-free
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
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
|
# Generated by distrobuilder
|
||||||
deb http://archive.ubuntu.com/ubuntu $LXC_RELEASE main restricted universe multiverse
|
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
|
deb http://archive.ubuntu.com/ubuntu $LXC_RELEASE-updates main restricted universe multiverse
|
||||||
|
Loading…
Reference in New Issue
Block a user