On Tue, Oct 29, 2002 at 09:02:11AM -0800, Jim Krenz wrote:

> Last night, I tried to upgrade my tiny P1 machine from FreeBSD 4.6 to 4.7.
> I've upgraded the same machine from 4.2, 4.3, 4.4, and 4.5, and haven't had
> problems until now.
> 
> During the upgrade installation, one of the packages failed. Sorry, I didn't
> note it down. The installer said that the upgrade failed, and that 4.7 was
> not installed. Since it was late, I figured that I'd reboot, and try the
> install again tomorrow night.
> 
> When I rebooted, the system appeared to be 4.7. All of my users were gone.
> Ownership of directories and files seem to have changed. And most important,
> root had no password attached.
> 
> So, here is my main question: Should I, a relative *nix newbie, try to fix
> these issues? Or should I erase the disk, do a fresh install, and load up my
> settings and websites from the most recent backup?

You seem to have missed out the last step in the upgrade procedure,
which is to merge your original /etc files with the default versions
that are what you have installed now.  The original files should be in
/var/tmp/etc, unless you selected somewhere different.


According to 
http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/sysinstall/installUpgrade.c?rev=1.82&content-type=text/x-cvsweb-markup
/stand/sysinstall runs something like this to restore the /etc files:

#!/bin/sh

etcfiles='Xaccel.ini X11 adduser.conf aliases aliases.db amd.map
auth.conf crontab csh.cshrc csh.login csh.logout cvsupfile
dhclient.conf disktab dm.conf dumpdates exports fbtab fstab ftpusers
gettytab gnats group hosts hosts.allow hosts.equiv hosts.lpd
inetd.conf kerberosIV localtime login.access login.conf mail mail.rc
make.conf manpath.config master.passwd modems motd namedb networks
newsyslog.conf nsmb.conf nsswitch.conf pam.conf passwd periodic ppp
printcap profile pwd.db rc.local rc.firewall rc.conf.local remote
resolv.conf rmt sendmail.cf sendmail.cw services shells skeykeys
spwd.db ssh syslog.conf ttys uucp'

cd /var/tmp/etc
[ -d /etc/upgrade ] && rm -rf /etc/upgrade
mkdir /etc/upgrade

for file in $etcfiles ; do
    if [ -r $file ] ; then
        mv /etc/$file /etc/upgrade/$file

        tar cf - $file | tar xpf - -C /etc || \
            echo "Unable to resurrect your old /etc/$file"
    fi
done

After that, you should probably grab a copy of the
RELENG_4_7_0_RELEASE sources into /usr/src and run mergemaster to iron
out any remaining kinks.

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to