Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 1999 14:14:00 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        mcwong@ascend.com
Cc:        questions@freebsd.org
Subject:   Re: Safe upgrade from 2.2.5 --> 3.2 ?
Message-ID:  <19990819141400.A11333@lithium.scientia.demon.co.uk>
In-Reply-To: <882567D2.003DC09F.00@colton.ascend.com>
References:  <882567D2.003DC09F.00@colton.ascend.com>

next in thread | previous in thread | raw e-mail | index | archive | help
mcwong@ascend.com wrote:

> One more question before I begin. Since 2.2.5 is a.out only system
> and 3.2 will be elf by default, now that I have the 3.2. src what target
> should I be building first ? I look at the Makefile explanation but am
> not able to follow exactly which one I should run. THere are
> 
> buildworld - which is something which I will need since I cannot
>             afford to overwrite all binaries just yet.
> installworld - done after above after certain level of confidence
> upgrade - should this be done before or after the above 2 ?

You want `aout-to-elf', I think this is the same as `upgrade'. I think it
builds an aout world, and uses that to build an ELF world, which it then
installs. So aout-to-elf is the only target you need, though I'd suggest
breaking it up, see below.

> Also, about the mergemaster util. Should this be run before or
> after the above build process ?

I'd suggest aout-to-elf-build, mergemaster, aout-to-elf-install, but I
don't use mergemaster.

> mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /var/tmp/temproot/usr
> mtree: line 156: unknown keyword nochange
> *** Error code 1

That's presumably because you are using an older version of mtree. Just
do the aout-to-elf-build, upgrade /etc manually (all you should need to
update are the rc scripts), and then do the aout-to-elf-install. This
should work. You could upgrade /etc with mergemaster after the upgrade
if you wish.

In fact, you can probably skip upgrading /etc until after the
upgrade. The only reason not updating /etc caused a problem for me was
that the machine in question doesn't have a video card, so I have to do
everything over the network. After the upgrade, the system came back
up OK, and I could telnet to it, but my shell was an aout zsh, and the
old rc scripts hadn't configured aout libs (the old ones didn't know
about the two binary formats, so they just configure the default format
-- ELF). Because of this, I could enter my login and password, but
the shell wouldn't run.  Since root cannot login over the network, I
couldn't do that even though root's shell was /bin/sh. If you can login
on the console as root after the upgrade, just do `aout-to-elf', and let
it get on with it.

-- 
Ben Smithurst            | PGP: 0x99392F7D
ben@scientia.demon.co.uk |   key available from keyservers and
                         |   ben+pgp@scientia.demon.co.uk


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?19990819141400.A11333>