aboutsummaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2005-10-11 03:53:02 +0000
committerKris Kennaway <kris@FreeBSD.org>2005-10-11 03:53:02 +0000
commitb63664dd37ad87f7efa63b6c83d26a1cdb3c4b3f (patch)
treefe58bc815429f5692693700abd9d768c899adc92 /Tools/portbuild
parent0faac9ad5fc61b28094cad1345559a3ae1845196 (diff)
downloadports-b63664dd37ad87f7efa63b6c83d26a1cdb3c4b3f.tar.gz
ports-b63664dd37ad87f7efa63b6c83d26a1cdb3c4b3f.zip
Notes
Diffstat (limited to 'Tools/portbuild')
-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