diff options
author | kris <kris@FreeBSD.org> | 2005-10-11 11:53:02 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2005-10-11 11:53:02 +0800 |
commit | e54d7b249dd7060a82dfdaf455ad522dd6690f9b (patch) | |
tree | 3cf353f5cc44d41ee239cadd99436c665af0ee57 /Tools | |
parent | e028d879e5fa9326f62de77de080d9b2a771a98d (diff) | |
download | freebsd-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-x | Tools/portbuild/scripts/cleanup-chroots | 5 |
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 |