remote_access.sh: Prevent failure due to race in remote_reboot

Separate the touch and reboot commands in remote_reboot to ensure the
touch command success, while ignoring the non-zero exit code during
the reboot command since there's potential race condition causing the
reboot happening earlier than the ssh session exit, and it doesn't
matter whether the reboot command succeeds.

BUG=b:388682790
TEST=./update_kernel.sh $DUT

Change-Id: I9d3e5b6b2d6e8023b6108e24f5ec5669f517c72c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/6258335
Tested-by: Yu-Che Cheng <[email protected]>
Reviewed-by: Tim Bain <[email protected]>
Commit-Queue: Yu-Che Cheng <[email protected]>
Reviewed-by: Fei Shao <[email protected]>
1 file changed
tree: 96d3a7d91864da543a52e2c97e8c093b53f6f58a
  1. bin/
  2. build_library/
  3. hooks/
  4. lib/
  5. mod_for_test_scripts/
  6. .gitignore
  7. build_kernel_image.sh
  8. common.sh
  9. cros_show_stacks
  10. DIR_METADATA
  11. image_to_vm.sh
  12. make_netboot.sh
  13. mod_image_for_recovery.sh
  14. mount_gpt_image.sh
  15. OWNERS
  16. PRESUBMIT.cfg
  17. README.md
  18. update_bootloaders.sh
  19. update_kernel.sh
README.md

src/scripts directory

This repository contains build tools and scripts written in shell (e.g., Bash). Historically, much of our build process was written in shell in this directory, however, we're currently in the process of migrating many scripts to Python in Chromite.

In general, we're not currently accepting new scripts in this directory.

If you want to host a script for yourself/local team, feel free to use the src/platform/dev/contrib/ directory instead.