Add some wisdom to the jail setup instructions.

This commit is contained in:
Poul-Henning Kamp 2001-12-14 20:20:50 +00:00
parent 365979cdac
commit c579474cea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87943

View File

@ -52,10 +52,12 @@ Please see the
man page for further details.
.Sh EXAMPLES
.Ss "Setting up a Jail Directory Tree"
This shows how to setup a jail directory tree:
This example shows how to setup a jail directory tree
containing an entire FreeBSD distribution:
.Bd -literal
D=/here/is/the/jail
cd /usr/src
mkdir -p $D
make world DESTDIR=$D
cd etc
make distribution DESTDIR=$D -DNO_MAKEDEV_RUN
@ -64,6 +66,14 @@ sh MAKEDEV jail
cd $D
ln -sf dev/null kernel
.Ed
.Pp
In many cases this example would put far more stuff in the jail than is needed.
In the other extreme case a jail might contain only one singe file:
the executable to be run in the jail.
.Pp
We recommend experimentation and caution that it is a lot easier to
start with a ``fat'' jail and remove things until it stops working,
than it is to start with a ``thin'' jail and add things until it works.
.Ss "Setting Up a Jail"
Do what was described in
.Sx "Setting Up a Jail Directory Tree"