Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2002 02:08:04 -0700
From:      Darren Pilgrim <dmp@pantherdragon.org>
To:        Desmond Lee <desmond.lee@shaw.ca>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>, scott@bsdprophet.org, kstewart@owt.com, grog@FreeBSD.org
Subject:   Re: some questions about upgrade and /etc/ files
Message-ID:  <3D4F91F4.E25E8EAD@pantherdragon.org>
References:  <CMEMLGKEKMLLFOICILNMIEHECBAA.desmond.lee@shaw.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4F91F4.E25E8EAD>