Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Nov 2004 13:18:47 -0500
From:      Chad Whitacre <chad@zetaweb.com>
To:        freebsd-questions@freebsd.org
Subject:   trouble with jail(8) example
Message-ID:  <cm8j2l$7ck$1@sea.gmane.org>

next in thread | raw e-mail | index | archive | help
Hey all,

I am going through the jail examples here:

   http://tinyurl.com/54q6y [man page]

Specifically:

   D=/here/is/the/jail
   cd /usr/src
   mkdir -p $D
   make world DESTDIR=$D
   cd etc
   make distribution DESTDIR=$D -DNO_MAKEDEV_RUN
   cd $D/dev
   sh MAKEDEV jail
   cd $D
   ln -sf dev/null kernel

on step 6 I get the following output:

cd /usr/src/etc;  install -g wheel -m 644 -o root  amd.map apmd.conf 
auth.conf  crontab csh.cshrc csh.login csh.logout  dhclient.conf dm.conf 
fbtab ftpusers gettytab group  hosts hosts.allow host.conf hosts.equiv 
hosts.lpd  inetd.conf login.access login.conf  motd modems networks 
newsyslog.conf  pam.conf phones printcap profile protocols  rc rc.atm 
rc.diskless1 rc.diskless2 rc.firewall rc.firewall6  rc.network 
rc.network6 rc.pccard rc.sendmail rc.serial rc.shutdown  rc.syscons 
rc.sysctl remote rpc services  shells sysctl.conf syslog.conf usbd.conf 
  etc.i386/disktab  etc.i386/rc.i386  etc.i386/ttys 
/usr/src/etc/../gnu/usr.bin/man/manpath/manpath.config 
/usr/src/etc/../usr.bin/mail/misc/mail.rc 
/usr/src/etc/../usr.bin/locate/locate/locate.rc rc.isdn 
/jails/test_jail/etc;  cap_mkdb /jails/test_jail/etc/login.conf; 
install -g wheel -m 755 -o root  netstart pccard_ether rc.suspend 
rc.resume /jails/test_jail/etc;  install -g wheel -m 600 -o root 
master.passwd nsmb.conf opieaccess /jails/test_jail/etc;  pwd_mkdb -p -d 
/jails/test_jail/etc /jails/test_jail/etc/master.passwd
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 file2
        install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
                [-o owner] file1 ... fileN directory
        install -d [-v] [-g group] [-m mode] [-o owner] directory ...
*** Error code 64

Stop in /usr/src/etc.

The problem is that /jails/test_jail/etc doesn't exist yet. If I create 
it manually, then 'make distribution' works fine until the next missing 
directory. So my question is this: do I need to create the structure 
manually? It seems like make distribution should do that for me.

Thanks.



chad

P.S. This is 4.10-RELEASE.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cm8j2l$7ck$1>