diff options
author | agc <agc@pkgsrc.org> | 2005-01-05 14:22:27 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2005-01-05 14:22:27 +0000 |
commit | 99551923ffaa231054bb2d24240ea108f1ccbb95 (patch) | |
tree | f7038159b0bfd1565e736fea9e107ae80c794baf /doc/pkgsrc.txt | |
parent | 6d421ee1bae358a20a081264c6354fc40f8bbb7a (diff) | |
download | pkgsrc-99551923ffaa231054bb2d24240ea108f1ccbb95.tar.gz |
Regenerate, to include documentation on the mksandbox script, and the
"sandbox" script which is generated.
Diffstat (limited to 'doc/pkgsrc.txt')
-rw-r--r-- | doc/pkgsrc.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt index acdd7a024c7..fe3c186478e 100644 --- a/doc/pkgsrc.txt +++ b/doc/pkgsrc.txt @@ -1216,14 +1216,22 @@ wasted by recompiling. 5.3.6. Setting up a sandbox for chroot'ed builds -If you don't want all the pkgs nuked from a machine (rendering it useless for -anything but pkg compiling), there is the possibility of doing the pkg bulk +If you don't want all the packages nuked from a machine (rendering it useless +for anything but pkg compiling), there is the possibility of doing the pkg bulk build inside a chroot environment. -The first step to do so is setting up a chroot sandbox, e.g. /usr/sandbox. -After extracting all the sets from a NetBSD installation or doing a make -distribution DESTDIR=/usr/sandbox in /usr/src/etc, be sure the following items -are present and properly configured: +The first step is to set up a chroot sandbox, e.g. /usr/sandbox. This can be +done by using null mounts, or manually. + +There is a shell script called pkgsrc/mk/bulk/mksandbox which will set up the +sandbox environment using null mounts. It will also create a script called +sandbox in the root of the sandbox environment, which will allow the null +mounts to be activated using the sandbox mount command and deactivated using +the sandbox umount command. + +To set up a sandbox environment by hand, after extracting all the sets from a +NetBSD installation or doing a make distribution DESTDIR=/usr/sandbox in /usr/ +src/etc, be sure the following items are present and properly configured: 1. Kernel |