The processes of building and updating your
FreeBSD JailEnvironments are nearly identical to their non-jail counterparts. The updating method, in particular, is exactly the same except that a few commands are set to operate on a directory other than /.
D=/here/is/the/jail
cd /usr/src
mkdir -p $D
make buildworld # If necessary
make installworld DESTDIR=$D
cd etc
make distribution DESTDIR=$D -DNO_MAKEDEV_RUN
For 4.x systems only:
cd $D/dev
sh MAKEDEV jail
cd $D
ln -sf dev/null kernel
After installation, visit
ConfigureJailEnvironment.
D=/here/is/the/jail
cd /usr/src
mergemaster -p -D $D
make buildworld # If necessary
make installworld DESTDIR=$D
mergemaster -D $D
For 4.x systems only:
cd $D/dev
sh MAKEDEV jail
--
KirkStrauser - 11 Oct 2003