svn commit: r274726 - projects/release-vmimage/release/tools

Glen Barber gjb at FreeBSD.org
Wed Nov 19 23:19:38 UTC 2014


On Wed, Nov 19, 2014 at 10:17:23PM +0000, Colin Percival wrote:
> Author: cperciva
> Date: Wed Nov 19 22:17:22 2014
> New Revision: 274726
> URL: https://svnweb.freebsd.org/changeset/base/274726
> 
> Log:
>   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.
> 
> Modified:
>   projects/release-vmimage/release/tools/vmimage.subr
> 
> Modified: projects/release-vmimage/release/tools/vmimage.subr
> ==============================================================================
> --- projects/release-vmimage/release/tools/vmimage.subr	Wed Nov 19 20:19:53 2014	(r274725)
> +++ projects/release-vmimage/release/tools/vmimage.subr	Wed Nov 19 22:17:22 2014	(r274726)
> @@ -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
>  }
> 

Thanks!

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20141119/de8eb726/attachment.sig>


More information about the svn-src-projects mailing list