freebsd-dev/usr.sbin/freebsd-update
Kyle Evans ebebc41e4c freebsd-update: unconditionally regenerate passwd/login.conf files
The existing logic is nice in theory, but in practice freebsd-update will
not preserve the timestamps on these files. When doing a major upgrade, e.g.
from 12.1-RELEASE -> 12.2-RELEASE, pwd.mkdb et al. appear in the INDEX and
we clobber the timestamp several times in the process of packaging up the
existing system into /var/db/freebsd-update/files and extracting for
comparisons. This leads to these files not getting regenerated when they're
most likely to be needed.

Measures could be taken to preserve timestamps, but it's unclear whether
the complexity and overhead of doing so is really outweighed by the marginal
benefit.

I observed this issue when pkg subsequently failed to install a package that
wanted to add a user, claiming that the user was removed in the process.
bapt@ pointed to this pre-existing bug with freebsd-update as the cause.

PR:		234014, 232921
Reviewed by:	bapt, emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D27635
2020-12-17 03:42:54 +00:00
..
freebsd-update.8 Document the PAGER environment variable 2020-11-14 13:07:41 +00:00
freebsd-update.conf Move freebsd-update.conf to usr.sbin/freebsd-update. 2018-08-04 22:25:41 +00:00
freebsd-update.sh freebsd-update: unconditionally regenerate passwd/login.conf files 2020-12-17 03:42:54 +00:00
Makefile Move freebsd-update.conf to usr.sbin/freebsd-update. 2018-08-04 22:25:41 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00