From owner-freebsd-current@FreeBSD.ORG Tue Oct 8 06:30:01 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 49777E63 for ; Tue, 8 Oct 2013 06:30:01 +0000 (UTC) (envelope-from mueller6721@twc.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.226]) by mx1.freebsd.org (Postfix) with ESMTP id 15BAF26A0 for ; Tue, 8 Oct 2013 06:30:00 +0000 (UTC) Received: from [74.130.200.176] ([74.130.200.176:54284] helo=localhost) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 3F/9A-16944-166A3525; Tue, 08 Oct 2013 06:29:53 +0000 Date: Tue, 08 Oct 2013 06:29:53 +0000 Message-ID: <3F.9A.16944.166A3525@cdptpa-oedge02> From: "Thomas Mueller" To: freebsd-current@freebsd.org Subject: Unable to installworld after successful buildworld and buildkernel X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 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 06:30:01 -0000 >From $SRCDIR/UPDATING 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. make buildworld make buildkernel KERNCONF=YOUR_KERNEL_HERE make installworld DESTDIR=${CURRENT_ROOT} make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd This part seems not to have changed so far from RELENG_9 to HEAD. I failed on "make installworld DESTDIR=/BETA1 |& tee installworld.log" ERROR: Required unbound user is missing, see /usr/src/UPDATING How am I supposed to have an unbound user on a partition where there is no existing FreeBSD installation? Like the job market, where one needs to have two or more years experience, but how to get that first job? I tried mergemaster -p -m /BETA1/usr/src -D /BETA1 on thin air, managed to get a master.passwd that included unbound user, but make installworld DESTDIR=/BETA1 failed immediately for lack of unbound user it couldn't find. I also tried make distribution DESTDIR=/BETA1 (and distributeworld too), no joy: Target directory, either /BETA1/etc or /BETA1/etc/atf, does not exist. There is a bug in $SRCDIR/UPDATING in the part about cross-installing current onto a separate partition. I even tried copying /etc directory from USB stick to /BETA1/etc before running mergemaster, but that also failed. But this was no barrier when I built and installed FreeBSD 9-stable i386 on a USB stick, mounted as /compat/i386. >From https://wiki.freebsd.org/i386-Wine # cd /usr/src # make buildworld TARGET=i386 # make installworld TARGET=i386 DESTDIR=/compat/i386 # make distribution TARGET=i386 DESTDIR=/compat/i386 # mkdir /compat/i386/usr/ports # mount -t devfs devfs /compat/i386/dev # mount -t nullfs /usr/ports /compat/i386/usr/ports 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. That worked, but wouldn't work for FreeBSD-current now due to unbound and /etc problems? How does one install FreeBSD, building from source, on a partition with no OS installed? Directories on this partition include /netbsd-HEAD, /pkgsrc, and /usr/src, /usr/ports and /usr/doc. I use a USB-stick installation of FreeBSD 9.2 prerelease for building FreeBSD-current, but due to a bug in re driver, could not connect to Internet with Realtek 8111E Ethernet on MSI Z77 MPOWER motherboard. NetBSD-current (6.99.19 updated to 6.99.23) was able to access this Ethernet, so I checked out, by cvs, NetBSD-current source and pkgsrc tree (current, not quarterly), updated NetBSD and packages, and successfully built subversion. Then I used this svn to checkout FreeBSD-current source tree. I believe FreeBSD installation would not touch directories /netbsd-HEAD and /pkgsrc. Tom