From owner-freebsd-stable Sun Nov 3 18:27:16 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298DC37B404 for ; Sun, 3 Nov 2002 18:27:15 -0800 (PST) Received: from c18609.belrs1.nsw.optusnet.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BA2B43E7B for ; Sun, 3 Nov 2002 18:27:13 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.c18609.belrs1.nsw.optusnet.com.au (localhost.c18609.belrs1.nsw.optusnet.com.au [127.0.0.1]) by server.c18609.belrs1.nsw.optusnet.com.au (8.12.6/8.12.6) with ESMTP id gA42R6ZB075041; Mon, 4 Nov 2002 13:27:06 +1100 (EST) (envelope-from peter@server.c18609.belrs1.nsw.optusnet.com.au) Received: (from peter@localhost) by server.c18609.belrs1.nsw.optusnet.com.au (8.12.6/8.12.6/Submit) id gA42R4RV075035; Mon, 4 Nov 2002 13:27:04 +1100 (EST) Date: Mon, 4 Nov 2002 13:27:04 +1100 From: Peter Jeremy To: freebsd-stable@FreeBSD.ORG Cc: Jake Burkholder Subject: Re: installworld from a cross-buildworld Message-ID: <20021104022704.GA33811@server.c18609.belrs1.nsw.optusnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021103183335.N22677@locore.ca> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 03, 2002 at 06:33:35PM -0500, Jake Burkholder wrote: >Apparently, On Mon, Nov 04, 2002 at 10:06:26AM +1100, > Peter Jeremy said words to the effect of; > >> On Sun, Nov 03, 2002 at 05:19:46PM -0500, Jake Burkholder wrote: >> >Apparently, On Mon, Nov 04, 2002 at 08:28:10AM +1100, >> > Peter Jeremy said words to the effect of; >> > >> >> I have a fast x86 machine and a slow Alpha so I'd like to be able to >> >> do the Alpha buildworlds on the x86 and then install via NFS. >> ... >> >The only way I've found to do this is to nfs mount the filesystems of >> >the target machine on the build machine and do the installworld with >> >DESTDIR=/path/to/nfs/mount. ie: >> > >> > >> > make buildworld TARGET_ARCH=sparc64 >> > mount sparc64:/ /mnt (etc) >> > make installworld TARGET_ARCH=sparc64 DESTDIR=/mnt [didn't work] >Try -DNOFSCHG. I seem to recall having problems even when that was >set now that you bring it up, I haven't done this in a while. There >may be things that don't honour it. Thanks, this seems to have worked. (Except that it crashes in loader(8) - but I think that's a separate problem). For the benefit of the archives, the following seems to currently work for a -stable cross-architecture install from 'build' to 'install': build# make TARGET_ARCH=alpha KERNCONF=INSTALL buildworld buildkernel install# find / -flags schg > /tmp/schg install# chflags noschg `cat/tmp/schg` install# mount build:/usr/src /usr/src install# mount build:/usr/obj/alpha /usr/obj install# make installkernel build# mount install:/ /mnt build# mount install:/var /mnt/var build# mount install:/usr /mnt/usr build# make -DNOFSCHG TARGET_ARCH=alpha DESTDIR=/mnt installworld install# chflags schg `cat/tmp/schg` install# mergemaster This assumes there are no new schg files/directories. YMMV etc. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message