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
cd $D/dev
sh MAKEDEV jail
cd $D
ln -sf dev/null kernel
D=/here/is/the/jail
cd /usr/src
mergemaster -p -D $D
make buildworld # If necessary
make installworld DESTDIR=$D
mergemaster -D $D
cd $D/dev
sh MAKEDEV jail
-- KirkStrauser - 12 Sep 2002
|