diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-04-11 11:32:29 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-04-11 11:32:29 +0000 |
commit | 0c02d135ff4849dcedfc913e672531f8285ae937 (patch) | |
tree | f7f6cd76c29a48ba36a6ee960859fb6648764075 /Tools | |
parent | Sync with pointyhat (reorg) (diff) |
Include per-machine configuration and respect use_zfs flag
Notes
Notes:
svn path=/head/; revision=211049
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/cleanup-chroots | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/cleanup-chroots b/Tools/portbuild/scripts/cleanup-chroots index c6a095af0ab3..73173d4be605 100755 --- a/Tools/portbuild/scripts/cleanup-chroots +++ b/Tools/portbuild/scripts/cleanup-chroots @@ -41,12 +41,13 @@ pb=/var/portbuild arch=$(cat /etc/arch) . ${pb}/${arch}/portbuild.conf +. ${pb}/${arch}/portbuild.$(hostname) if [ "${use_zfs}" = "1" ]; then old=$(find ${scratchdir}/*/* -prune -mmin +20 2> /dev/null) else old=$(find ${scratchdir}/*/chroot/* -prune -mmin +20 2> /dev/null) -endif +fi if [ -z "${old}" ]; then exit 0 @@ -78,7 +79,7 @@ for i in ${old2}; do done umount ${i}/compat/linux/proc || cleanup_mount ${i}/compat/linux/proc fi - if [ "${use_md_swap}" = "1" ]; then + if [ "${use_zfs}" != "1" -a "${use_md_swap}" = "1" ]; then chrootnum=$(basename $i) umount -f /dev/md${i} mdconfig -d -u ${chrootnum} |