Hi. If /var/db/freebsd-update dir does not exists then freebsd-update(8) fails with error. # freebsd-update upgrade -r 13.1-RC3 freebsd-update: Directory does not exist or is not writable: /var/db/freebsd-update IMHO if such dir does not exists then freebsd-update(8) should try to create it and only fail if 'Permission denied.' error would occur (lack of write permissions). Regards.
For clarity: is an absence of /var/db/freebsd-update typically the result of (for example) someone inadvertently removing the directory, instead of its contents?
I always remove /var/db/freebsd-update manually. 1st - it takes pointless space. 2nd - I want to be sure I start 'clean'. Hope that helps.
needs-qa Back to the pool, to decide whether this feature should be implemented.
Potential change in https://reviews.freebsd.org/D42033
var/db/freebsd-update is present in base.txz releases, but appears to be absent when built from poudriere images sometimes. I added a manual step in image overlay to ensure its present. IMO this would be nice to fix in freebsd-update, per https://reviews.freebsd.org/D42033