From a45fbecc65dfcc94dd34bbc4c67f699a6a0863e7 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sun, 18 Nov 2012 14:58:02 +0000 Subject: [PATCH] We switched away from building in chroots to building in jails some time ago. Make the document reflect this. --- .../articles/portbuild/article.xml | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/en_US.ISO8859-1/articles/portbuild/article.xml b/en_US.ISO8859-1/articles/portbuild/article.xml index 67c5a7ea18..f920668905 100644 --- a/en_US.ISO8859-1/articles/portbuild/article.xml +++ b/en_US.ISO8859-1/articles/portbuild/article.xml @@ -167,7 +167,7 @@ interesting data (ports and src trees, bindist tarballs, scripts, etc.) to disconnected nodes during the node-setup phase. Then, the disconnected portbuild directory is - nullfs-mounted for chroot builds. + nullfs-mounted for jail builds. The ports-${arch} @@ -191,27 +191,27 @@ - Chroot Build Environment Setup + Jail Build Environment Setup Package builds are performed in a - chroot populated by the + jail populated by the portbuild script using the ${arch}/${branch}/builds/${buildid}/bindist.tar file. - The following command builds a world from the + The makeworld command builds a world from the ${arch}/${branch}/builds/${buildid}/src/ tree and installs it into - ${worlddir}. The tree will + ${arch}/${branch}/builds/${buildid}/bindist.tar. + The tree will be updated first unless -nocvs is - specified. + specified. It should be run as root: /var/portbuild&prompt.root; scripts/makeworld ${arch} ${branch} ${buildid} [-nocvs] The bindist.tar tarball is created from the previously installed world by the mkbindist - script. It should be run as root with the following - command: + script. It should be also be run as root: /var/portbuild&prompt.root; scripts/mkbindist ${arch} ${branch} ${buildid} @@ -915,7 +915,7 @@ PKG_BIN=/usr/local/sbin/pkg &prompt.user; /var/portbuild/scripts/build cleanup i386 8-exp 20080714120411 -full If you forget to do this, then the old build - chroots will not be cleaned up for 24 hours, and no + jails will not be cleaned up for 24 hours, and no new jobs will be dispatched in their place since pointyhat thinks the job slot is still occupied. @@ -1564,9 +1564,13 @@ umount: Cleanup of /x/tmp/8-exp/chroot/53837/compat/linux/proc failed! Pick a directory to hold ports configuration and - chroot subdirectories. It may be + chroot subdirectories. It may be best to put it this on its own partition. (Example: /usr2/.) + + The filename chroot is a + a historical remnant. + @@ -2011,7 +2015,7 @@ touch /tmp/.boot_finished between boots then they must either preserve their /tmp, or revalidate their available builds at boot time (see the script on the amd64 - machines). They must also clean up stale chroots from previous + machines). They must also clean up stale jails from previous builds before creating /tmp/.boot_finished.