Project

General

Profile

« Previous | Next » 

Revision c746f6b5

Added by Renato Botelho over 8 years ago

If umount fails, use umount -f

View differences:

tools/builder_common.sh
965 965
		echo ">>> ERROR: Error mounting temporary vmdk image. STOPPING!" | tee -a ${LOGFILE}
966 966
		print_error_pfS
967 967
	fi
968
	trap "sync; sleep 3; umount ${_mntdir}; mdconfig -d -u ${_md}; return" 1 2 15 EXIT
968
	trap "sync; sleep 3; umount ${_mntdir} || umount -f ${_mntdir}; mdconfig -d -u ${_md}; return" 1 2 15 EXIT
969 969

  
970 970
	echo "Done!" | tee -a ${LOGFILE}
971 971

  
......
973 973

  
974 974
	sync
975 975
	sleep 3
976
	umount ${_mntdir} 2>&1 >>${LOGFILE}
976
	umount ${_mntdir} || umount -f ${_mntdir} >>${LOGFILE} 2>&1
977 977
	mdconfig -d -u ${_md}
978 978
	trap "-" 1 2 15 EXIT
979 979

  

Also available in: Unified diff