tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysupgrade in src?



On Fri, Apr 15, 2022 at 08:05:54AM -0400, Greg Troxel wrote:
> To me, the right behavior is to know if each file in etc has been put
> there as a copy of a file that appeared in etc.tgz, and to change it to
> the new version without prompting if so, and if not, to note to the user
> that it might need attention.  Perhaps sysupgrade/etcupdate does this,
> and if so great.
> 

-a             etcupdate can automatically update files which have not
               been modified locally.  The -a flag instructs etcupdate to
               store MD5 checksums in /var/etcupdate and use these
               checksums to determine if there have been any local
               modifications.

-l             Automatically skip files with unchanged RCS IDs.  This has
               the effect of leaving alone files that have been altered
               locally but which have not been changed in the reference
               files.  Since this works using RCS IDs, files without RCS
               IDs will not be skipped even if only modified locally.
               This flag may be used together with the -a flag described
               above.

Downside: this doesn't work for modified files without RCS IDs, which
of course means that etcupdate prompts about /etc/passwd (etc.)
every single time.


Home | Main Index | Thread Index | Old Index