Index: usr.sbin/bsdinstall/scripts/script =================================================================== --- usr.sbin/bsdinstall/scripts/script +++ usr.sbin/bsdinstall/scripts/script @@ -114,6 +114,17 @@ bsdinstall mount fi +# Fetch distributions +for set in $DISTRIBUTIONS; do + f_dprintf "Checking if $set must be fetched" + # Should any of the sets be missing, we fetch the distributions set + if [ ! -f "$BSDINSTALL_DISTDIR/$set" ]; then + test -d "$BSDINSTALL_DISTDIR" || mkdir -p $BSDINSTALL_DISTDIR + f_dprintf "$set not found. Starting distfetch..." + bsdinstall distfetch + fi +done + # Unpack distributions bsdinstall checksum for set in $DISTRIBUTIONS; do