From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 3 07:52:31 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2270FE13; Tue, 3 Jun 2014 07:52:31 +0000 (UTC) Received: from mail-yh0-x22e.google.com (mail-yh0-x22e.google.com [IPv6:2607:f8b0:4002:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C52882958; Tue, 3 Jun 2014 07:52:30 +0000 (UTC) Received: by mail-yh0-f46.google.com with SMTP id 29so4774902yhl.19 for ; Tue, 03 Jun 2014 00:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GQFlaJr5ndWFsN4MWlXQcaStuLxeyF7P5rLdoL9POfc=; b=UEtiHpvm4dJY2P9pwpKEK7shc/namzRXPJ6Hi9wpHWimvMMpaxYmjKBFPqI3tCGyRC lfDF6mRuVM5vacXRLcliuCM6/wxnKIaxtIoipI8SozBAE5giVo712O6nae9PHBiTsTHE g9rJeHrb4vH34kotQR/wZpUsHP8sVh/DvWsfuKPDHbmZQk7n9Z7RjDV9jV0VrRX/PPUM aYNYDUs8T3P5PLE6ae7Omj0xdQ41fIMmyV19SI7gXuzYdZ8OmTHLn3CM21xAw19TgV5o 9P7OpHvq7xf5ABOJSABjxHF2D4Xdj9A4v2unifZtxlV8Tjkary2oglzKXzVt3nPSTACA +hnA== MIME-Version: 1.0 X-Received: by 10.236.180.169 with SMTP id j29mr60038290yhm.47.1401781949864; Tue, 03 Jun 2014 00:52:29 -0700 (PDT) Received: by 10.170.54.8 with HTTP; Tue, 3 Jun 2014 00:52:29 -0700 (PDT) In-Reply-To: <538D50B3.300@freebsd.org> References: <538B61EC.9000403@mu.org> <5B82C892-12A4-4251-B3D2-A6D3EAAF90F9@dataix.net> <538B6FCC.9090301@mu.org> <538B761C.7060300@mu.org> <50E51CBE-7F7B-4093-86A5-320ACE81072E@dataix.net> <538B7937.2030104@mu.org> <098847BE-04B5-4E6F-98B8-87B5C7055C69@mail.turbofuzz.com> <538B8494.3040701@mu.org> <7977A65A-5ABE-49DD-8E76-074B54943D64@mail.turbofuzz.com> <538BDDF5.708@mu.org> <409ccb2cf1dc027bdf6ff7ccbda08723.authenticated@ultimatedns.net> <538C8DDF.3030602@mu.org> <538D4C93.1060808@freebsd.org> <538D50B3.300@freebsd.org> Date: Tue, 3 Jun 2014 08:52:29 +0100 Message-ID: Subject: Re: Upgrading an i386 machine from amd64. From: krad To: Allan Jude X-Mailman-Approved-At: Tue, 03 Jun 2014 11:27:03 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2014 07:52:31 -0000 sorry im coming in a bit late here but i have done similar in the past. What i did was build the binaries on another computer and then do an install world and kernel with DESTDIR set to say /build/. I then rsynced that dir from the build server to the target system. Its better if you can do this via a liveusb image if you can but it should be ok if you cant. Just make sure rsync is built statically to minimize problems. Once the binaries (and src and obj) were copied over, i would then reboot the system to single user mode. There I would rerun the installworld and kernel again to to make sure everything was done correctly. YOu can then clean up with delete-old etc. Finally reinstall all your ports. On 3 June 2014 05:36, Allan Jude wrote: > On 2014-06-03 00:31, Alfred Perlstein wrote: > > > > > >> On Jun 2, 2014, at 9:18 PM, Julian Elischer wrote: > >> > >> On 6/2/14, 10:44 PM, Alfred Perlstein wrote: > >> [...] > >> so I guess we really should have a separate install-tools target along > with an INSTALL_TARGET that populates it with cross built tools kind of > like the universe target builds everything. but that's way beyond my > makefile foo. > >> > >> > > > > Yes. That would solve my specific problem. > > > > -Alfred > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > > > > I seem to recall, that when I needed to upgrade an i386 machine to > amd64, did the following: > > mv /boot/kernel /boot/kernel.old > tar -xJf kernel.txz -C / > > rebooted on to the new kernel > > tar -xJf base.txz --exclude ./etc -C / > > then used mergemaster to update my /etc > > I seem to recall having to manually remove some schg flags. I did a > fresh buildworld etc after I got the system running amd64, so that > restored those flags after. > > -- > Allan Jude > >