Silence errors when umounting the chroot's /dev, since it probably doesn't

exist when we're running this.

Unmount filesystems before attempting to destroy the md which holds them.
This commit is contained in:
cperciva 2014-11-19 22:17:22 +00:00
parent ee5ba5e498
commit 9e2769f85a

View File

@ -42,11 +42,11 @@ err() {
}
cleanup() {
umount ${DESTDIR}/dev 2>/dev/null
umount ${DESTDIR}
if [ ! -z "${mddev}" ]; then
mdconfig -d -u ${mddev}
fi
umount ${DESTDIR}/dev
umount ${DESTDIR}
return 0
}