From owner-freebsd-current@FreeBSD.ORG Tue Oct 8 14:15:12 2013 Return-Path: Delivered-To: freebsd-current@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 ESMTP id 8BFFC3AD for ; Tue, 8 Oct 2013 14:15:12 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C62F82650 for ; Tue, 8 Oct 2013 14:15:11 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.7/8.14.7) with ESMTP id r98EF122069181; Tue, 8 Oct 2013 09:15:01 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.7/8.14.7/Submit) id r98EF13W069180; Tue, 8 Oct 2013 09:15:01 -0500 (CDT) (envelope-from brooks) Date: Tue, 8 Oct 2013 09:15:01 -0500 From: Brooks Davis To: Thomas Mueller Subject: Re: Unable to installworld after successful buildworld and buildkernel Message-ID: <20131008141501.GA69028@lor.one-eyed-alien.net> References: <3F.9A.16944.166A3525@cdptpa-oedge02> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <3F.9A.16944.166A3525@cdptpa-oedge02> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2013 14:15:12 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 08, 2013 at 06:29:53AM +0000, Thomas Mueller wrote: > From $SRCDIR/UPDATING >=20 > To cross-install current onto a separate partition > -------------------------------------------------- > # In this approach we use a separate partition to hold > # current's root, 'usr', and 'var' directories. A partition > # holding "/", "/usr" and "/var" should be about 2GB in > # size. >=20 > > > make buildworld > make buildkernel KERNCONF=3DYOUR_KERNEL_HERE > > > make installworld DESTDIR=3D${CURRENT_ROOT} > make distribution DESTDIR=3D${CURRENT_ROOT} # if newfs'd > make installkernel KERNCONF=3DYOUR_KERNEL_HERE DESTDIR=3D${CURREN= T_ROOT} > cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if n= ewfs'd > > > > > >=20 > This part seems not to have changed so far from RELENG_9 to HEAD. >=20 > I failed on "make installworld DESTDIR=3D/BETA1 |& tee installworld.log" >=20 > ERROR: Required unbound user is missing, see /usr/src/UPDATING >=20 > How am I supposed to have an unbound user on a partition where there is n= o existing FreeBSD installation? >=20 > Like the job market, where one needs to have two or more years experience= , but how to get that first job? >=20 > I tried > mergemaster -p -m /BETA1/usr/src -D /BETA1 > on thin air, managed to get a master.passwd that included unbound user, b= ut=20 > make installworld DESTDIR=3D/BETA1=20 > failed immediately for lack of unbound user it couldn't find. >=20 > I also tried=20 > make distribution DESTDIR=3D/BETA1 > (and distributeworld too), no joy: > Target directory, either /BETA1/etc or /BETA1/etc/atf, does not exist. >=20 > There is a bug in $SRCDIR/UPDATING in the part about cross-installing cur= rent onto a separate partition. >=20 > I even tried copying /etc directory from USB stick to /BETA1/etc before r= unning mergemaster, but that also failed. >=20 > But this was no barrier when I built and installed FreeBSD 9-stable i386 = on a USB stick, mounted as /compat/i386. >=20 > From https://wiki.freebsd.org/i386-Wine >=20 > # cd /usr/src > # make buildworld TARGET=3Di386 > # make installworld TARGET=3Di386 DESTDIR=3D/compat/i386 > # make distribution TARGET=3Di386 DESTDIR=3D/compat/i386 > # mkdir /compat/i386/usr/ports > # mount -t devfs devfs /compat/i386/dev > # mount -t nullfs /usr/ports /compat/i386/usr/ports >=20 > but instead of the latter part, after "make distribution ..." > I made buildkernel and installkernel, and booted from the USB stick, used= ports directory on hard drive. >=20 > That worked, but wouldn't work for FreeBSD-current now due to unbound and= /etc problems? >=20 > How does one install FreeBSD, building from source, on a partition with n= o OS installed? To cross install FreeBSD on a system without the required users/groups you must either install them on the base system so that install and mtree can use them or use the -DDB_FROM_SRC option when running the installworld/installkernel/distribution targets. -- Brooks --jI8keyz6grp/JLjh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFSVBNkXY6L6fI4GtQRAiXSAKCTzdgT3s1gdyTPywCDj9brCfCVLgCfa3zH ztszWsEhQ9ooUhiW67RCLow= =Prr5 -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--