From owner-freebsd-questions@FreeBSD.ORG Tue Nov 12 14:31:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DA04402 for ; Tue, 12 Nov 2013 14:31:45 +0000 (UTC) Received: from strudel.ki.iif.hu (strudel.ki.iif.hu [IPv6:2001:738:0:411:20f:1fff:fe6e:ec1e]) by mx1.freebsd.org (Postfix) with ESMTP id 5D4CD2096 for ; Tue, 12 Nov 2013 14:31:45 +0000 (UTC) Received: from bolha.lvs.iif.hu (bolha.lvs.iif.hu [193.225.14.181]) by strudel.ki.iif.hu (Postfix) with ESMTP id 0E0B2519; Tue, 12 Nov 2013 15:31:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bolha.lvs.iif.hu Received: from strudel.ki.iif.hu ([IPv6:::ffff:193.6.222.244]) by bolha.lvs.iif.hu (bolha.lvs.iif.hu [::ffff:193.225.14.72]) (amavisd-new, port 10024) with ESMTP id 76Gqke-+WUfz; Tue, 12 Nov 2013 15:31:32 +0100 (CET) Received: by strudel.ki.iif.hu (Postfix, from userid 9002) id 296214FF; Tue, 12 Nov 2013 15:31:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by strudel.ki.iif.hu (Postfix) with ESMTP id 1FCA84F4; Tue, 12 Nov 2013 15:31:32 +0100 (CET) Date: Tue, 12 Nov 2013 15:31:32 +0100 (CET) From: Mohacsi Janos X-X-Sender: mohacsi@strudel.ki.iif.hu To: Polytropon Subject: Re: using freebsd-update to revert back to GENERIC config files? In-Reply-To: <20131111220338.ed645ada.freebsd@edvax.de> Message-ID: References: <52813F9D.5090802@niif.hu> <20131111220338.ed645ada.freebsd@edvax.de> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 14:31:45 -0000 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@csoki> pwd /usr/src/etc/sendmail mohacsi@csoki> sudo make distribution install -o root -g wheel -m 644 /usr/src/etc/sendmail/freebsd.mc freebsd.cf /etc/mail install -o root -g wheel -m 444 /usr/src/etc/sendmail/freebsd.submit.mc freebsd.submit.cf /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/sendmail.st install -o root -g wheel -m 644 freebsd.cf /etc/mail/sendmail.cf install -o root -g wheel -m 444 freebsd.submit.cf /etc/mail/submit.cf mohacsi@csoki> sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 5 mirrors found. Fetching metadata signature for 9.1-RELEASE from update6.freebsd.org... done. 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: /etc/mail/freebsd.cf /etc/mail/freebsd.submit.cf /etc/mail/sendmail.cf /etc/mail/submit.cf /var/db/mergemaster.mtree .... > > 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? mergemaster.mtree? Regards, Janos Mohacsi