Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Nov 2002 13:27:04 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        freebsd-stable@FreeBSD.ORG
Cc:        Jake Burkholder <jake@locore.ca>
Subject:   Re: installworld from a cross-buildworld
Message-ID:  <20021104022704.GA33811@server.c18609.belrs1.nsw.optusnet.com.au>
In-Reply-To: <20021103183335.N22677@locore.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021104022704.GA33811>