Index: head/usr.sbin/freebsd-update/freebsd-update.sh =================================================================== --- head/usr.sbin/freebsd-update/freebsd-update.sh +++ head/usr.sbin/freebsd-update/freebsd-update.sh @@ -216,7 +216,15 @@ # Add to the list of components which should be kept updated. config_Components () { for C in $@; do - COMPONENTS="${COMPONENTS} ${C}" + if [ ! "$C" = "src" ]; then + COMPONENTS="${COMPONENTS} ${C}" + else + if [ "$(ls -A "/usr/src/")" ]; then + COMPONENTS="${COMPONENTS} ${C}" + else + echo "/usr/src/ is empty, skip src component" + fi + fi done }