get_fai_dir() {

    # get /fai directory; mount it or get it from a cvs repository
    if [ -z "$FAI_LOCATION" ]; then
       [ "$debug" ] && echo "Warning $0: \$FAI_LOCATION not defined."
       get_fai_cvs
    else
        mount $romountopt $FAI_LOCATION $FAI &&
	    echo "Configuration space $FAI mounted from $FAI_LOCATION"
    fi
    if [ ! -d $FAI/class ]; then
	echo "WARNING: directory $FAI/class not found."
    fi
}