#!/bin/sh
#
# Writes the final sources.list file
#

CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
RELEASE="buster"

cat << EOF > $CHROOT/etc/apt/sources.list.d/official-package-repositories.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://apt.pearllinux.net $RELEASE main upstream import backport

deb http://deb.debian.org/debian $RELEASE main contrib non-free
# deb-src http://deb.debian.org/debian $RELEASE main contrib non-free

deb http://deb.debian.org/debian $RELEASE-updates main
# deb-src http://deb.debian.org/debian $RELEASE-updates main

deb http://security.debian.org/debian-security/ $RELEASE/updates main
# deb-src http://security.debian.org/debian-security/ $RELEASE/updates main
EOF

exit 0
