Skip to topic | Skip to bottom
Home
Freebsd
Freebsd.BuildAndUpdateJailsr1.3 - 11 Oct 2003 - 14:00 - KirkStrausertopic end

Start of topic | Skip to actions



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 /.

Building a JailEnvironment:

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.

Updating a JailEnvironment:

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


You are here: Freebsd > JailEnvironments > BuildAndUpdateJails

to top

Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Subwiki? Send feedback