From owner-freebsd-current@FreeBSD.ORG Sun Oct 3 19:54:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C351516A4CE for ; Sun, 3 Oct 2004 19:54:38 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E40743D39 for ; Sun, 3 Oct 2004 19:54:38 +0000 (GMT) (envelope-from david.downey@gmail.com) Received: by mproxy.gmail.com with SMTP id 79so3762807rnk for ; Sun, 03 Oct 2004 12:54:34 -0700 (PDT) Received: by 10.38.73.46 with SMTP id v46mr4335470rna; Sun, 03 Oct 2004 12:54:34 -0700 (PDT) Received: by 10.38.82.69 with HTTP; Sun, 3 Oct 2004 12:54:34 -0700 (PDT) Message-ID: <6917b781041003125473180ac5@mail.gmail.com> Date: Sun, 3 Oct 2004 15:54:34 -0400 From: "David D.W. Downey" To: Ruslan Ermilov In-Reply-To: <20041003180927.GA3932@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <415EC5E6.2070305@FreeBSD.org> <20041002165116.GB57797@ip.net.ua> <415F796F.8010204@FreeBSD.org> <20041003051530.GA2165@ip.net.ua> <6917b781041003083422828183@mail.gmail.com> <20041003180927.GA3932@ip.net.ua> cc: Current cc: Scott Long Subject: Re: [Fwd: Re: Inability to create jails under 5.3-BETA6] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "David D.W. Downey" List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 19:54:39 -0000 On Sun, 3 Oct 2004 21:09:27 +0300, Ruslan Ermilov wrote: > On Sun, Oct 03, 2004 at 11:34:15AM -0400, David D.W. Downey wrote: > > Sorry Ruslan, > > > > Had some issues here that necessitated a reinstall which kept me > > offline since i messaged about this. > > > > OK, I'll check out what you said. I just tried under BETA7 using the > > man page details to try it. I'll check out your suggestion and go from > > there. > > > > My Makefile is currently $FreeBSD: src/Makefile,v 1.306 2004/08/09 > > 11:38:41 harti Exp $ > > and this is 5.3-BETA7 pull as of yesterday night. Is 1.442 in 6.x or > > something? (I just redid a fresh pull while working on this email and > > it's still 1.306) > > > You need src/Makefile.inc1,v 1.442 not src/Makefile. > > > On Sun, 3 Oct 2004 08:15:30 +0300, Ruslan Ermilov wrote: > > > Hi Scott, > > > > > > On Sat, Oct 02, 2004 at 10:00:47PM -0600, Scott Long wrote: > > > > Is it better to MFC the hack from HEAD, or just update the manpage? > > > > > > > I think it's better to MFC it (I planned to do it anyway), > > > especially that the patch is trivial and only changes the > > > type of the DESTDIR variable in three places. (Patch is > > > attached, in case you want to commit it -- I will be away > > > from my computer in the next 12 or so hours.) > > I also attached a ready to commit patch in this email. > > Also ran into a problem using the method you described of make installworld DESTDIR=$D doing that failed to install quite a few files. /etc/ is almost completely unpopulated. Doesn't even know who root is! (from inside the jail) ==================== # ls etc/ X11 fstab mail ntp ppp rc.d ssh bluetooth gnats mtree pam.d rc.conf resolv.conf ssl defaults isdn namedb periodic rc.conf~ skel # (rc.conf and resolv.conf are edits i made following the man page) My exact sequences were as follows... >From silvani (the host) (codecastle.com is my private internal network) I ran /bin/sh (since no offense but I can't stand csh) # cd /usr/src # cvsup -g -L 2 /usr/sup/current-supfile # D=/usr/local/LOCKBOX/virtual-tree/development/devel.codecastle.com # mkdir -p $D # ls -alh /usr/local/LOCKBOX/virtual-tree/development/ total 10 drwxr-xr-x 5 root wheel 512B Oct 3 13:47 . drwxr-xr-x 4 root wheel 512B Sep 30 00:19 .. drwxrwxr-x 2 root operator 512B Oct 3 00:28 .snap drwxr-xr-x 16 root wheel 512B Oct 3 13:47 desktop.codecastle.com drwxr-xr-x 16 root wheel 512B Oct 3 13:41 devel.codecastle.com # make buildworld # make installworld DESTDIR=$D # jail /usr/local/LOCKBOX/virtual-tree/development/devel.codecastle.com 192.168.1.5 /bin/sh # touch /etc/fstab # echo 'nameserver 4.2.2.1' >> /etc/resolv.conf # echo 'nameserver 4.2.2.3' >> /etc/resolv.conf [Then i hand edited /etc/rc.conf to add the appropriate entries as shown in the man page for jail] Then I did this... # passwd root passwd: root: no such user # Which prompted me to check the /etc dir for passwd and master.passwd. As the above ls showed there were a truckload of files missing just in the /etc/ dir itself. Any ideas? -- David D.W. Downey