Index: usr.sbin/freebsd-update/freebsd-update.sh =================================================================== --- usr.sbin/freebsd-update/freebsd-update.sh +++ usr.sbin/freebsd-update/freebsd-update.sh @@ -219,9 +219,16 @@ # Add to the list of components which should be kept updated. config_Components () { + _SRC_COMPONENT_DIR = "/usr/src" + + # Use the base dir if it has been set. + if ! [ -z ${BASEDIR} ]; then + _SRC_COMPONENT_DIR = "${BASEDIR}/${_SRC_COMPONENT_DIR}" + fi + for C in $@; do if [ "$C" = "src" ]; then - if [ -e /usr/src/COPYRIGHT ]; then + if [ -e "${_SRC_COMPONENT_DIR}/COPYRIGHT" ]; then COMPONENTS="${COMPONENTS} ${C}" else echo "src component not installed, skipped"