From b63664dd37ad87f7efa63b6c83d26a1cdb3c4b3f Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Tue, 11 Oct 2005 03:53:02 +0000 Subject: [PATCH] Add support for use_md_swap --- Tools/portbuild/scripts/cleanup-chroots | 5 +++++ 1 file changed, 5 insertions(+) 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