# Enable our apt sources on CD, DVD and PXE installs.
# Must run before 020-apt-get-update
case "$MODE" in
    configure)
        # Skip mirror check if installing from our unsigned CD.
        if [ file:///cdrom = "$option_mirror_value" ] ; then
            echo "Detected CD install, disabling APT repository checking."
            APT_GET_OPTS="$APT_GET_OPTS \
                           --allow-unauthenticated"
            COMPONENTS="$COMPONENTS local"
        fi
        ;;
    after-install)
        # Use same source list as the host system
        echo "Appending the host sources.list to ltsp sources.list."
        cat /etc/apt/sources.list >> $ROOT/etc/apt/sources.list
        ;;
esac
