Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2013 09:15:01 -0500
From:      Brooks Davis <brooks@freebsd.org>
To:        Thomas Mueller <mueller6724@bellsouth.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Unable to installworld after successful buildworld and buildkernel
Message-ID:  <20131008141501.GA69028@lor.one-eyed-alien.net>
In-Reply-To: <3F.9A.16944.166A3525@cdptpa-oedge02>
References:  <3F.9A.16944.166A3525@cdptpa-oedge02>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 sure you have good level 0 dumps>
>         <boot into -stable>
>         make buildworld
>         make buildkernel KERNCONF=3DYOUR_KERNEL_HERE
>         <maybe newfs current's root partition>
>         <mount current's root partition on directory ${CURRENT_ROOT}>
>         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
>         <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct par=
tition>
>         <reboot into current>
>         <do a "native" rebuild/install as described in the previous secti=
on>
>         <maybe install compatibility libraries from ports/misc/compat*>
>         <reboot>
>=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--



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