diff options
author | Steven Laver <lavers@google.com> | 2020-02-04 22:57:42 -0800 |
---|---|---|
committer | Steven Laver <lavers@google.com> | 2020-02-04 22:57:42 -0800 |
commit | 4042517fb9480423076cab1471b8b8f054c2c55e (patch) | |
tree | ac4dae58d81403a7e40ec50af8f6f1b430f7df2b /init/builtins.cpp | |
parent | 6a30c5f691c96d3d75cd8ac85dd76696ba345b7b (diff) | |
parent | 4b90a49e86a6b634695fba5697d2ff241028a0d8 (diff) |
Merge RP1A.200204.001
Change-Id: I6e7b77b53ef2e013a10f9dc68bc5fd2ebfeb2818
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r-- | init/builtins.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index 53e10895d..e134b8ff0 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -1145,6 +1145,7 @@ static Result<void> ExecVdcRebootOnFailure(const std::string& vdc_arg) { auto reboot_reason = vdc_arg + "_failed"; if (android::sysprop::InitProperties::userspace_reboot_in_progress().value_or(false)) { should_reboot_into_recovery = false; + reboot_reason = "userspace_failed," + vdc_arg; } auto reboot = [reboot_reason, should_reboot_into_recovery](const std::string& message) { @@ -1181,7 +1182,7 @@ static Result<void> do_remount_userdata(const BuiltinArguments& args) { } // TODO(b/135984674): check that fstab contains /data. if (auto rc = fs_mgr_remount_userdata_into_checkpointing(&fstab); rc < 0) { - trigger_shutdown("reboot,mount-userdata-failed"); + trigger_shutdown("reboot,mount_userdata_failed"); } if (auto result = queue_fs_event(initial_mount_fstab_return_code, true); !result) { return Error() << "queue_fs_event() failed: " << result.error(); |