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