# Settings for "buildd" profile.
# See schroot.conf(5) and schroot-script-config(5) for further details.
# The files detailed below may also be edited to further customise
# this profile.

# Filesystems to mount inside the chroot.
FSTAB="/etc/schroot/buildd/fstab"

# Files to copy from the host system into the chroot.
COPYFILES="/etc/schroot/buildd/copyfiles"

# System NSS databases to copy into the chroot.
NSSDATABASES="/etc/schroot/buildd/nssdatabases"

if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
    case $CHROOT_NAME in
        *-*-*-*-sbuild*)
        SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
        SUITE_VARIANT=$(echo $CHROOT_NAME | cut -f2,3 -d-)
        ;;
        *-*-*-sbuild*)
        SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
        SUITE_VARIANT=$(echo $CHROOT_NAME | cut -f2 -d-)
        ;;
        *-*-sbuild*)
        SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
        if [ ${SUITE_BASE} != "sid" ]; then
            SUITE_VARIANT="proposed-updates"
        fi
        ;;
    esac
fi
