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:
Colin Percival 2014-11-19 22:17:22 +00:00
parent 91333d6a2d
commit 7d97075f02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-vmimage/; revision=274726

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
}