[Fwd: Re: Inability to create jails under 5.3-BETA6]
David D.W. Downey
david.downey at gmail.com
Sun Oct 3 12:54:39 PDT 2004
On Sun, 3 Oct 2004 21:09:27 +0300, Ruslan Ermilov <ru at freebsd.org> 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 <ru at freebsd.org> 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
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
bluetooth gnats mtree pam.d
rc.conf resolv.conf ssl
defaults isdn namedb periodic
(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
# mkdir -p $D
# ls -alh /usr/local/LOCKBOX/virtual-tree/development/
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
# touch /etc/fstab
# echo 'nameserver 184.108.40.206' >> /etc/resolv.conf
# echo 'nameserver 220.127.116.11' >> /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.
David D.W. Downey
More information about the freebsd-current