From owner-freebsd-questions Thu Aug 19 7:44:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 8B85514CCF for ; Thu, 19 Aug 1999 07:43:47 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from lithium.scientia.demon.co.uk ([192.168.0.3] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.024 #3) id 11HS14-000DQm-00; Thu, 19 Aug 1999 14:14:02 +0100 Received: (from ben) by lithium.scientia.demon.co.uk (Exim 3.024 #3) id 11HS12-00031i-00; Thu, 19 Aug 1999 14:14:00 +0100 Date: Thu, 19 Aug 1999 14:14:00 +0100 From: Ben Smithurst 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> References: <882567D2.003DC09F.00@colton.ascend.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <882567D2.003DC09F.00@colton.ascend.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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