Added staging/stable release check to final install

This commit is contained in:
2025-11-26 12:09:25 -07:00
parent ec8d6cf988
commit 336560c60b
2 changed files with 16 additions and 11 deletions

View File

@@ -4,25 +4,24 @@
#
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
RELEASE="sid"
# Check if staging file exists to determine release
if [ -f "$CHROOT/staging" ]; then
RELEASE="staging"
else
RELEASE="stable"
fi
rm $CHROOT/etc/apt/sources.list
rm $CHROOT/etc/apt/sources.list.d/rakuos.list
cat << EOF > $CHROOT/etc/apt/sources.list.d/rakuos.sources
#RakuOS
Types: deb
URIs: https://repo.rakuos.org/rakuos
Suites: rakuos
URIs: https://repo.rakuos.org/
Suites: rakuos $RELEASE
Components: main contrib non-free
Signed-By: /usr/share/keyrings/rakuos-archive-keyring.gpg
# Debian upstream
Types: deb
URIs: http://repo.rakuos.org/upstream/
Suites: sid
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
EOF
cat << EOF > $CHROOT/etc/apt/sources.list.d/xanmod.sources
#XanMod
Types: deb
URIs: http://deb.xanmod.org/