37 lines
907 B
Bash
Executable File
37 lines
907 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Writes the final sources.list file
|
|
#
|
|
|
|
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
|
|
RELEASE="sid"
|
|
|
|
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
|
|
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
|
|
|
|
#XanMod
|
|
Types: deb
|
|
URIs: http://deb.xanmod.org/
|
|
Suites: sid
|
|
Components: main
|
|
Signed-By: /usr/share/keyrings/xanmod-archive-keyring.gpg
|
|
EOF
|
|
rm -rf $CHROOT/live
|
|
rm $CHROOT/etc/resolv.conf
|
|
ln -sf /run/systemd/resolve/stub-resolv.conf $CHROOT/etc/resolv.conf
|
|
exit 0
|