diff options
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r-- | init/builtins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index 269e5561e..be245732b 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -280,7 +280,7 @@ static Result<Success> do_mkdir(const std::vector<std::string>& args) { "--prompt_and_wipe_data", "--reason=set_policy_failed:"s + args[1]}; reboot_into_recovery(options); - return Error() << "reboot into recovery failed"; + return Success(); } } return Success(); @@ -485,7 +485,7 @@ static Result<Success> queue_fs_event(int code) { PLOG(ERROR) << "fs_mgr_mount_all suggested recovery, so wiping data via recovery."; const std::vector<std::string> options = {"--wipe_data", "--reason=fs_mgr_mount_all" }; reboot_into_recovery(options); - return Error() << "reboot_into_recovery() failed"; + return Success(); /* If reboot worked, there is no return. */ } else if (code == FS_MGR_MNTALL_DEV_FILE_ENCRYPTED) { if (e4crypt_install_keyring()) { |