diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-10-25 23:06:51 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-25 23:06:51 +0000 |
commit | dd85c74655400347aee5f6bfecd827a311f16ca4 (patch) | |
tree | 4b837cfa1d412116927789c317cf597fbad89cce /fastboot/fastboot.cpp | |
parent | 602f9a29b0e94a9e09520ba9a98f3cf3c65bdfca (diff) | |
parent | 0444a8cbd96c3dbb75399886b13ece5dc3d6ffa9 (diff) |
Merge "fastboot: Check that reboot to userspace succeeded."
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 5101410ce..81350fdb3 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1312,6 +1312,9 @@ void FlashAllTool::UpdateSuperPartition() { if (!is_userspace_fastboot()) { reboot_to_userspace_fastboot(); } + if (!is_userspace_fastboot()) { + die("Failed to boot into userspace; one or more components might be unbootable."); + } fb->Download("super", fd, get_file_size(fd)); std::string command = "update-super:super"; |