notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
non port: Tools/portbuild/scripts/cleanup-chroots
SVNWeb

Number of commits found: 12

Sun, 24 Apr 2011
[ 16:37 flz search for other commits by this committer ] Original commit  (Only the first 10 of 72 ports in this commit are shown above. View all ports for this commit)
Remove portbuild scripts from pcvs, as they now live in svn/projects.
Fri, 25 Jun 2010
[ 22:49 linimon search for other commits by this committer ] Original commit  (Only the first 10 of 11 ports in this commit are shown above. View all ports for this commit)
Generalize the packge building scripts to be able to be run on more than
one 'head' node, rather than just pointyhat itself.

Constants are factored out into installation-specific files known as
portbuild/conf/server.conf and portbuild/conf/client.conf.  There is
only one server.conf file.  Individual <arch> directories may have
their own client.conf files, or may symlink to ../conf/client.conf.

This first set of files only gets the *.conf files and some cleanup.

Feature safe:   yes
Mon, 16 Nov 2009
[ 00:16 linimon search for other commits by this committer ] Original commit 
Harden these a bit: make them identify on which host they were running;
skip unncessary steps.
Sat, 26 Jul 2008
[ 14:12 kris search for other commits by this committer ] Original commit 
* Cleanup
* Catch up to build ID directory changes
* Remove need for /etc/arch file
Fri, 11 Apr 2008
[ 11:32 pav search for other commits by this committer ] Original commit 
Include per-machine configuration and respect use_zfs flag
Sun, 29 Jul 2007
[ 20:27 kris search for other commits by this committer ] Original commit 
Support builds using zfs and tmpfs backing store

zfs:

* Enabled by use_zfs=1 in portbuild.conf

* Populate build chroots by cloning a zfs snapshot instead of maintaining
  many duplicate copies.  In principle this is very efficient since
  everything is copy-on-write and zfs snapshot creation is almost
  instantaneous.  There might be additional overheads from building on zfs
  though.  Currently the snapshot base is hard-wired to y/${branch}@base
  but should be parametrized.  This also must be populated beforehand, e.g.
  during machine startup

* Clean build chroots by just destroying the snapshot.

tmpfs:

* Enabled by use_tmpfs=1 and tmpfs_size in portbuild.conf

* The previous md strategy of mounting in used/, populating and then
  remounting (to avoid possible races from multiple builds claiming the
  same chroot) doesn't work here because tmpfs instances are destroyed at
  umount.  I am not entirely sure the simpler approach is free from races.
Sun, 18 Feb 2007
[ 08:53 kris search for other commits by this committer ] Original commit 
Increase cleanup timeout to 5 days from 48 hours, the openoffice builds
now regularly take longer than this :(
Sun, 22 Jan 2006
[ 04:55 kris search for other commits by this committer ] Original commit 
Also clean up linprocfs mounts
Tue, 11 Oct 2005
[ 03:53 kris search for other commits by this committer ] Original commit 
Add support for use_md_swap
Sat, 12 Feb 2005
[ 03:38 kris search for other commits by this committer ] Original commit 
Instead of using umount -f to unmount things, first use fstat to look for
processes holding open references within the FS and kill them, then use
regular umount.  This is necessary now that devfs cannot be force-unmounted,
and has the benefit that processes can't hang around holding references to
files between port builds.
Wed, 14 Jul 2004
[ 10:42 kris search for other commits by this committer ] Original commit 
Bump up the cleanup timeout to directories that have been in use for
>48 hours, to cope with monster ports like openoffice and atlas.
Mon, 8 Mar 2004
[ 01:56 kris search for other commits by this committer ] Original commit 
To be run on the client, this script looks for chroot directories that have not
been
used in 20 minutes, as well as directories listed as 'in use' that have not been
touched
in 24 hours (corresponding to port builds that have timed out or shut down
uncleanly)
and prunes them to reclaim space.  This is intended to be run as a cron job.

Number of commits found: 12