Revision ed245829
Added by Renato Botelho almost 9 years ago
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 "umount ${_mntdir}; mdconfig -d -u ${_md}; return" 1 2 15 EXIT |
|
968 |
trap "sync; sleep 3; umount ${_mntdir}; mdconfig -d -u ${_md}; return" 1 2 15 EXIT
|
|
969 | 969 |
|
970 | 970 |
echo "Done!" | tee -a ${LOGFILE} |
971 | 971 |
|
972 | 972 |
clone_directory_contents ${FINAL_CHROOT_DIR} ${_mntdir} |
973 | 973 |
|
974 | 974 |
sync |
975 |
sleep 3 |
|
975 | 976 |
umount ${_mntdir} 2>&1 >>${LOGFILE} |
976 | 977 |
mdconfig -d -u ${_md} |
977 | 978 |
trap "-" 1 2 15 EXIT |
Also available in: Unified diff
Add a workaround to umount virtual image directories