I just upgraded from 12.1-p10 to 12.2-p0 and ran into an issue.
The first part of freebsd-update -r 12.2-RELEASE went fine. Then the process wanted me to reboot and run install again to finish it off. That’s where it went wrong as the install process after the reboot stalled on a “No such file or directory” error regarding a missing file in /usr/src/ (/usr/src/contrib/apr/include/private/apr_encode_private.h to be precise but it's probably a lot more)
/usr/src/ is populated for me but it was clearly still on 12.1-p10 and so some files required for 12.2 were missing.
Now, one of the tasks of freebsd-update is to keep /usr/src/ updated if it’s populated. Correct? Why then doesn’t it update that directory before it needs it itself?
It would make sense if updating the /usr/src directory is the last thing freebsd-update does in the first phase, prior to the reboot. Is this a bug in freebsd-update?
The first part of freebsd-update -r 12.2-RELEASE went fine. Then the process wanted me to reboot and run install again to finish it off. That’s where it went wrong as the install process after the reboot stalled on a “No such file or directory” error regarding a missing file in /usr/src/ (/usr/src/contrib/apr/include/private/apr_encode_private.h to be precise but it's probably a lot more)
/usr/src/ is populated for me but it was clearly still on 12.1-p10 and so some files required for 12.2 were missing.
Now, one of the tasks of freebsd-update is to keep /usr/src/ updated if it’s populated. Correct? Why then doesn’t it update that directory before it needs it itself?
It would make sense if updating the /usr/src directory is the last thing freebsd-update does in the first phase, prior to the reboot. Is this a bug in freebsd-update?
Last edited by a moderator: