Date: Mon, 30 Mar 2015 09:08:25 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280846 - head/release/tools Message-ID: <201503300908.t2U98PN9071934@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cperciva Date: Mon Mar 30 09:08:24 2015 New Revision: 280846 URL: https://svnweb.freebsd.org/changeset/base/280846 Log: Improve check for whether ${DESTDIR}/dev is mounted. Submitted by: gcooper Modified: head/release/tools/vmimage.subr Modified: head/release/tools/vmimage.subr ============================================================================== --- head/release/tools/vmimage.subr Mon Mar 30 09:05:20 2015 (r280845) +++ head/release/tools/vmimage.subr Mon Mar 30 09:08:24 2015 (r280846) @@ -45,7 +45,7 @@ err() { } cleanup() { - if mount | grep -qE "devfs on ${DESTDIR}/dev"; then + if [ -c "${DESTDIR}/dev/null" ]; then umount_loop ${DESTDIR}/dev 2>/dev/null fi umount_loop ${DESTDIR}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503300908.t2U98PN9071934>