Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2009 13:11:43 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: make installworld DESTDIR=/mnt fails
Message-ID:  <20090330131143.47127dgnexe52iw4@webmail.leidinger.net>
In-Reply-To: <20090330074502.GA4247@rebelion.Sisis.de>
References:  <20090330074502.GA4247@rebelion.Sisis.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Matthias Apitz <guru@unixarea.de> (from Mon, 30 Mar 2009 =20
09:45:02 +0200):

>
>
> Hello,
>
> I have created a boot-able USB key with -CURRENT from CVS following
> this recipe:
>
> # mkdir -p /usr/src/myHEAD/obj
> # cd /usr/src/myHEAD
> # cvs checkout src
> # setenv MAKEOBJDIRPREFIX /usr/src/myHEAD/obj
> # cd /usr/src/myHEAD/src
> # make buildworld

> I've enriched this USB key with the actual source tree and the compiled
> objects:
>
> # cd /usr/src/
> # tar -cf - myHEAD | ( cd /mnt ; tar -xpf - )
>
> now I wanted to install based on this booted CURRENT another
> PC, its empty disk is mounted below /mnt; the installation fails
> as shown below;
>
> what is the reason for this?

> # setenv MAKEOBJDIRPREFIX /myHEAD/obj
> # cd /myHEAD/src

You need to
     mv /myHEAD /usr/src/myHEAD
     setenv MAKEOBJDIRPREFIX /usr/src/myHEAD/obj
and it should work.

The realpath of the src dir is used  when creating the obj tree. If =20
you look at myHEAD/obj/, you will see that there's an usr/src/myHEAD. =20
Alternatively it should work to mv /myHEAD/obj/usr/src/myHEAD to =20
/myHEAD/obj/, but I types this part out of my head without looking at =20
a real obj tree, so there could be something missing.

Bye,
Alexander.

--=20
Democracy is the recurrent suspicion that more than half
of the people are right more than half of the time.
=09=09-- E. B. White

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID =3D B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID =3D 72077137



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