aboutsummaryrefslogtreecommitdiff
path: root/release/tools
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2014-11-19 22:17:22 +0000
committerColin Percival <cperciva@FreeBSD.org>2014-11-19 22:17:22 +0000
commit7d97075f02527bcf29318143c2fc3650be79ee07 (patch)
tree898f1a4e2060f834f3f1fd4ae8ee8115c3ec47bb /release/tools
parent91333d6a2da25901490044d87e633ac5dba8cb0c (diff)
downloadsrc-7d97075f02527bcf29318143c2fc3650be79ee07.tar.gz
src-7d97075f02527bcf29318143c2fc3650be79ee07.zip
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.
Notes
Notes: svn path=/projects/release-vmimage/; revision=274726
Diffstat (limited to 'release/tools')
-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 00a0a2e23da3..3e1ddce66b14 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
}