aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2008-04-11 11:32:29 +0000
committerPav Lucistnik <pav@FreeBSD.org>2008-04-11 11:32:29 +0000
commit0c02d135ff4849dcedfc913e672531f8285ae937 (patch)
treef7f6cd76c29a48ba36a6ee960859fb6648764075 /Tools
parent2545b7c79ef9280425a266d2be6841f9c63a423d (diff)
downloadports-0c02d135ff4849dcedfc913e672531f8285ae937.tar.gz
ports-0c02d135ff4849dcedfc913e672531f8285ae937.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/cleanup-chroots5
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}