This commit is contained in:
Christoph 2021-11-13 02:23:07 +01:00
commit 15d3081866

View File

@ -1773,10 +1773,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
@ -1786,10 +1804,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