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

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

cat << EOF > $CHROOT/etc/apt/sources.list
# This system was installed using PeppermintOS removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were removed at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

# Main Repo - main contrib non-free
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware

# Security Repo - main contrib non-free
deb http://security.debian.org/ bookworm-security main contrib non-free
#deb-src http://security.debian.org/ bookworm-security main contrib non-free

# Updates Repo - main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
#deb-src http://deb.debian.org/debian bookworm-updates main

# Proposed Updates Repo - main contrib non-free
#deb http://deb.debian.org/debian/ bookworm-proposed-updates main contrib non-free
#deb-src http://deb.debian.org/debian/ bookworm-proposed-updates main contrib non-free

# bookworm-backports, previously on backports.debian.org
deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free
#deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free

EOF

exit 0
