aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2005-10-11 11:53:02 +0800
committerkris <kris@FreeBSD.org>2005-10-11 11:53:02 +0800
commite54d7b249dd7060a82dfdaf455ad522dd6690f9b (patch)
tree3cf353f5cc44d41ee239cadd99436c665af0ee57 /Tools
parente028d879e5fa9326f62de77de080d9b2a771a98d (diff)
downloadfreebsd-ports-gnome-e54d7b249dd7060a82dfdaf455ad522dd6690f9b.tar.gz
freebsd-ports-gnome-e54d7b249dd7060a82dfdaf455ad522dd6690f9b.tar.zst
freebsd-ports-gnome-e54d7b249dd7060a82dfdaf455ad522dd6690f9b.zip
Add support for use_md_swap
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/cleanup-chroots5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/cleanup-chroots b/Tools/portbuild/scripts/cleanup-chroots
index 4254318c9e7f..09c3acb230e9 100755
--- a/Tools/portbuild/scripts/cleanup-chroots
+++ b/Tools/portbuild/scripts/cleanup-chroots
@@ -73,6 +73,11 @@ for i in ${old2}; do
umount ${j} || cleanup_mount ${j}
done
fi
+ if [ "${use_md_swap}" = "1" ]; then
+ chrootnum=$(basename $i)
+ umount -f /dev/md${i}
+ mdconfig -d -u ${chrootnum}
+ fi
done
mkdir -p ${scratchdir}/old