From owner-freebsd-questions Tue Aug 6 2: 8:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3968237B400; Tue, 6 Aug 2002 02:08:08 -0700 (PDT) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8000643E72; Tue, 6 Aug 2002 02:08:07 -0700 (PDT) (envelope-from dmp@pantherdragon.org) Received: from sparx.pantherdragon.org (evrtwa1-ar10-4-61-252-210.evrtwa1.dsl-verizon.net [4.61.252.210]) by spork.pantherdragon.org (Postfix) with ESMTP id 9E94BFDDC; Tue, 6 Aug 2002 02:08:06 -0700 (PDT) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.pantherdragon.org (Postfix) with ESMTP id A806DA923; Tue, 6 Aug 2002 02:08:04 -0700 (PDT) Message-ID: <3D4F91F4.E25E8EAD@pantherdragon.org> Date: Tue, 06 Aug 2002 02:08:04 -0700 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Desmond Lee Cc: freebsd-questions , scott@bsdprophet.org, kstewart@owt.com, grog@FreeBSD.org Subject: Re: some questions about upgrade and /etc/ files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Desmond Lee wrote: > does restoring > the backups of the /etc/group and /etc/master.passwd ensure that my /etc/ > dir was like it was from before? No. > Are there possibly lots of other files that > i have monkeyed with and are now messed up? Yes. Any change you've made could have been wiped out. It depends on if the CVS version of the file has changed from 4.4 to 4.6, and where the changes are in the file, because of how diff works. The only way to know is to go through your config files and check the settings. > If so,... how can i restore the > files in the /etc/dir?... i think darren mentioned getting it from the > cvs... but how does this work since the /etc/ files are setup custom to my > system... ie groups and passwords? If you have a live filesystem CD for 4.4-R, you can pull the /etc files from that. If you don't, create a supfile like this: *default host=cvsup10.FreeBSD.org *default base=/home/dmp/cvs *default prefix=/home/dmp/cvs/usr *default release=cvs tag=RELENG_4_4_0_RELEASE *default delete use-rel-suffix *default compress src-etc src-crypto > Like i understand that you can just get a > fresh set of /etc/ files from anywhere in the source tree, but isn't this > bad because i need to keep the info that is already in the /etc/ files that > exist? That's why you tell cvsup to download the CVS copies to someplace other than /etc. > I did what was suggested and modified the /etc/group and /etc/master.passwd > files by hand and updated the cvs tags at the top of the file the same as > the file where the changes are comming from (ie. i changed the first lines > of /etc/group, which are the cvs tag, to be the first lines of > /usr/src/etc/group). Now, when i cd into '/usr/src' and then try 'make > installworld' i get an error message "ERROR: Required smmsp user is missing, > see /usr/src/UPDATING'. But i have already hand editied the /etc/group and > /etc/master.passwd files to do exactly this? Is there a step i'm missing? Do > i have to do a 'pwd_mkdb' or something like that? Yes. > So, because of step 2 above, i tried to do a 'mergemaster -p' again but now > it says that it can't find /etc/make.conf.... so like what happened? Did i > accidentally delete the file or something? It's already well established that your /etc directory isn't in good shape. I'd say pull down the 4.4-R /etc files, put them in by hand, go through and reconfigure them to your system, and run mergemaster -p again. > Just to check, i was told i have to run 'mergemaster -p' before a build > world to see what files need changing, then have to change thoes files by > hand and make sure the cvs tags updated. Then i do the 'make installworld' > and then do a 'mergetmaster -p' again to add changes to any of the /etc/* > files that may have changed with the upgrade to the latest stable version. > Is this correct. So basically, the first call to 'mergemaster -p' is so that > the 'make installworld' can succeed and the 2nd call to 'mergemaster -p' is > so that the new version of freebsd has is in sync with your /etc/* config > files... correct? The first invocation of mergemaster with the command `mergemaster -p` checks the files that have to be up-to-date for make world to succeed. The second invocation of mergemaster with the command `mergemaster` (note there is no -p) updates all of your settings files. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message