diff --git a/usr.sbin/bsdinstall/scripts/auto b/usr.sbin/bsdinstall/scripts/auto --- a/usr.sbin/bsdinstall/scripts/auto +++ b/usr.sbin/bsdinstall/scripts/auto @@ -265,6 +265,18 @@ fi fi +# +# If we ran netconfig just now, it means we're going to download +# something, so we need to set the clock, or we may fail to validate +# server certificates. +# +if [ "$NETCONFIG_DONE" = yes ]; then + if [ -z "$BSDINSTALL_SKIP_TIME" ]; then + bsdinstall time + BSDINSTALL_SKIP_TIME=yes + fi +fi + rm -f $PATH_FSTAB touch $PATH_FSTAB