using freebsd-update to revert back to GENERIC config files?

Mohacsi Janos mohacsi at
Tue Nov 12 14:31:45 UTC 2013

On Mon, 11 Nov 2013, Polytropon wrote:

> On Mon, 11 Nov 2013 21:35:41 +0100, Janos Mohacsi wrote:
>> Is there a clean way to overvwrite these files with the GENERIC during
>> 9.2-RELEASE upgrade?
> Don't confuse GENERIC (the name of the configuration file for
> the kernel distributed with FreeBSD releases) with the stock
> configuration files. There is no direct relationship.
> You could try to copy the (unmodified, stock) configuration
> files if you have used freebsd-update to get the "src"
> distribution, i. e. the /usr/src tree. Here you will find
> the /usr/src/etc directory from which you could "make install",
> and there's also the /usr/src/etc/mail subdirectory with the
> configuration files that would go to /etc/mail - you can try
> to copy them manually.
Thanks for the hint.
I tried without success:

mohacsi at csoki> pwd
mohacsi at csoki> sudo make distribution
install -o root -g wheel -m 644  /usr/src/etc/sendmail/ /etc/mail
install -o root -g wheel -m 444  /usr/src/etc/sendmail/ /etc/mail
install -o root -g wheel -m 444 
/usr/src/etc/sendmail/../../contrib/sendmail/src/helpfile /etc/mail
install -o root -g wheel -m 640  /dev/null /var/log/
install -o root -g wheel -m 644 /etc/mail/
install -o root -g wheel -m 444 /etc/mail/
mohacsi at csoki> sudo freebsd-update fetch
Looking up mirrors... 5 mirrors found.
Fetching metadata signature for 9.1-RELEASE from 
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files are affected by updates, but no changes have
been downloaded because the files have been modified locally:

> Of course, it's "cleaner" to use mergemaster to deal with
> modified configuration files, such as it is being done around
> a "make installworld" run, but as you said you're using the
> binary update method, the system should forgive my suggestion
> of the unholy blasphemy that arises from manually copying
> files. :-)

What is the source where freebsd-update checking the neccessary changes?

 		Janos Mohacsi

More information about the freebsd-questions mailing list