freebsd-update sucks during upgrade 14.3->15.0

I got the title from this: https://forums.freebsd.org/threads/freebsd-update-upgrade-sucks.87400/

For me it sucks because it's been already a good 45 minutes of me staring at:
Creating snapshot of existing boot environment... done.
Installing updates...
which happens after reboot while invoking "freebsd-update install" the second time.
It's much faster to install a new system, but it was infeasible due to many customizations that were implemented/configured.

I diagnosed that it's due to the "install" command having the "-S" option to fsync after every write. It seems the upgrade is modifying/writing many thousand files. It's even fsyncing every single file in the /usr/src tree... It'd call it a "little" too cautious.

I would like the option to freebsd-update to turn off this behavior. I think it'd complete in no more than couple of minutes with it... A real timesaver for all the users who need to upgrade FreeBSD.

You can call it "--no-fsync-during-install-i-assume-and-accept-all-the-risks" if you think it's dangerous.

Thank you in advance.
 
Has nothing to do with this specific upgrade. It's because there's lots and lots of (small) files in the source tree. As you are doing a binary upgrade you might want to rethink having the source code installed, you're probably not going to need it anyway. Just remove the source files, or disable updating it with freebsd-update(8) and update the source separately with git for example.

Remove src from this line in /etc/freebsd-update.conf:
Code:
# Components of the base system which should be kept updated.
Components src world kernel
 
Thank you. It's still painfully and unnecessarily slow when not having src installed, and my request (voiced in the name of all FreeBSD users wasting their time watching the "Installing updates..." message) still stands.
 
Back
Top