Add more information to loopback mount failures.

Buildbots are periodically failing to build images; the evidence
points to failures in mount_gpt_image.sh, but it's inconclusive.
Add detailed error messages to mount failures so as to be able
to debug more the next time it happens.

BUG=chromium-os:24975
TEST=build_image, to see that successful cases still work
TEST=repeatedly mount new images with mount_gpt_image until it fails

Change-Id: I05a09c8eec46d9296a24ff36904a4aea20d2aae5
Reviewed-on: https://gerrit.chromium.org/gerrit/14433
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
1 file changed
tree: e07b6d0436bbfcf58b7d4fd49edfa2c0cb9e992c
  1. .gitignore
  2. archive_hwqual
  3. bash_completion
  4. bin/
  5. build_image
  6. build_kernel_image.sh
  7. build_library/
  8. call_autoserv.py
  9. check_control_files.sh
  10. chroot_version_hooks.d/
  11. clean_loopback_devices
  12. common.sh
  13. cros_deps_diff
  14. cros_generate_breakpad_symbols
  15. cros_generate_deps_graphs
  16. cros_generate_stacks_bvt
  17. cros_show_stacks
  18. dot_helper.py
  19. enable_localaccount.sh
  20. enter_chroot.sh
  21. exclude-list
  22. fixup_image_for_qemu.py
  23. get_latest_image.sh
  24. get_package_list
  25. image_to_usb.sh
  26. image_to_vm.sh
  27. lib/
  28. make_netboot.sh
  29. mod_for_factory_scripts/
  30. mod_for_test_scripts/
  31. mod_image_for_recovery.sh
  32. mod_image_for_test.sh
  33. mod_test_image_for_pyauto.sh
  34. mount_gpt_image.sh
  35. remote_access.sh
  36. run_chroot_version_hooks
  37. sdk_lib/
  38. serve_factory_packages.py
  39. set_shared_user_password.sh
  40. sha256_partitions.sh
  41. ssh_test.sh
  42. start_devserver
  43. update_bootloaders.sh
  44. update_chroot
  45. update_kernel.sh
  46. upload_symbols
  47. verify_rootfs_chksum.sh