Date: Tue, 06 Aug 2002 00:07:28 -0700 From: Desmond Lee <desmond.lee@shaw.ca> To: freebsd-questions <freebsd-questions@freebsd.org>, scott@bsdprophet.org, dmp@pantherdragon.org, kstewart@owt.com, grog@FreeBSD.org Subject: some questions about upgrade and /etc/ files Message-ID: <CMEMLGKEKMLLFOICILNMIEHECBAA.desmond.lee@shaw.ca>
next in thread | raw e-mail | index | archive | help
Hi there So, what i've been trying to do is upgrade from version 4.4 to 4.6. I've gotten as far as trying the 'make installworld' command. Now, i've run into problems where i stupidly ran 'mergemaster -p' and didn't back up my etc directory. So, thanks to some help from you guys i've located the back ups of the /etc/group and /etc/master.passwd in the /var/backups dir. I copied the backups to /etc/ and then did a 'pwd_mkdb /etc/master.passwd' So, now i'm able to log into the os and i can resume the upgrade. Here are some questions that i'm hoping that some more experience users can help me with: 1. Now, i'm just wondering, since i did a blind mergemaster i dunno what files i messed up in my /etc/ directory, so i'm just wondering... does restoring the backups of the /etc/group and /etc/master.passwd ensure that my /etc/ dir was like it was from before? Are there possibly lots of other files that i have monkeyed with and are now messed up? 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? 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? 2. 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? Um... if it's not too much trouble, can some one tell me what commands to use to grab stuff from cvs? Like,... do i do somthing like "check out <some tag> <some files>". I'm not sure what the names of the tags are and stuff. 3. 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? When i do a 'locate make.conf' it shows up in a bunch of places 3 or which are the following: /etc/default/make.conf /usr/share/examples/etc/default/make.conf /usr/src/etc/defaul/make.conf .... 4. 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? Thanks so much for your help and patience, it's greatly appreciated regards Desmond To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CMEMLGKEKMLLFOICILNMIEHECBAA.desmond.lee>