(factory-241) Sync factory builder scripts with ToT

We've seen Alex factory bundle corrupted several times, and usually
caused tools modified SSD rootfs partition unexpectedly.

ToT make_factory_package has more safe and solid image type detection
ability so we should port that to R11 factory.

BUG=chrome-os-partner:6299
TEST=./make_factory_package --release PATH_TO_RECOVERY \
     --factory PATH_TO_FACTORY_TEST \
     --firmware PATH_TO_FIRMWARE \
     --hwid none

Change-Id: I9a2aa34b32e22ea21dd8e814b1e7ef53d80bcd04
Reviewed-on: https://gerrit.chromium.org/gerrit/10482
Reviewed-by: Jay Kim <yongjaek@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
4 files changed
tree: 1ecf35f54aab378ea0de250ab7d7484f91a931bc
  1. bin/
  2. bootperf-bin/
  3. lib/
  4. mod_for_factory_scripts/
  5. mod_for_test_scripts/
  6. .gitignore
  7. archive_build.sh
  8. archive_hwqual
  9. bash_completion
  10. binhost_clobber.py
  11. build_gpt.sh
  12. build_image
  13. build_kernel_image.sh
  14. call_autoserv.py
  15. check_control_files.sh
  16. check_deps
  17. chromeos_blacklist
  18. clean_loopback_devices
  19. common.sh
  20. create_esp.sh
  21. create_legacy_bootloader_templates.sh
  22. cros_deps_diff
  23. cros_download_latest_image
  24. cros_extract_deps
  25. cros_generate_breakpad_symbols
  26. cros_generate_deps_graphs
  27. cros_mark_branch_as_stable
  28. cros_run_unit_tests
  29. cros_show_stacks
  30. cros_workon
  31. dot_helper.py
  32. emit_gpt_scripts.sh
  33. enable_localaccount.sh
  34. enter_chroot.sh
  35. file_copy.py
  36. fixup_image_for_qemu.py
  37. generate_au_zip.py
  38. generate_test_report.py
  39. get_latest_image.sh
  40. get_package_list
  41. gmergefs
  42. image_hacks.sh
  43. image_to_live.sh
  44. image_to_usb.sh
  45. image_to_virtualbox.sh
  46. image_to_vm.sh
  47. inherit-review-settings-ok
  48. kernel_fetcher.sh
  49. make_developer_script_runner.sh
  50. make_factory_package.sh
  51. make_universal_factory_shim.sh
  52. mk_memento_images.sh
  53. mod_image_for_recovery.sh
  54. mod_image_for_test.sh
  55. mount_gpt_image.sh
  56. remote_access.sh
  57. resize_stateful_partition.sh
  58. run_remote_tests.sh
  59. serve_factory_packages.py
  60. set_shared_user_password.sh
  61. ssh_test.sh
  62. start_devserver
  63. sync_build_test.sh
  64. test_cookie_pipe.py
  65. test_image
  66. tracker.sh
  67. unit_test_black_list.txt
  68. update_bootloaders.sh
  69. update_kernel.sh
  70. upload_symbols
  71. verify_rootfs_chksum.sh
  72. WATCHLISTS