summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2014-11-19 22:17:22 +0000
committercperciva <cperciva@FreeBSD.org>2014-11-19 22:17:22 +0000
commit9e2769f85a5fa8890bf5b8379ee70c83f05b9661 (patch)
tree898f1a4e2060f834f3f1fd4ae8ee8115c3ec47bb /release
parentee5ba5e498b6fa4e91c95853282ab74f4359adac (diff)
downloadFreeBSD-src-9e2769f85a5fa8890bf5b8379ee70c83f05b9661.zip
FreeBSD-src-9e2769f85a5fa8890bf5b8379ee70c83f05b9661.tar.gz
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.
Diffstat (limited to 'release')
-rw-r--r--release/tools/vmimage.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 00a0a2e..3e1ddce 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -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
}
OpenPOWER on IntegriCloud