Reboot even if a system update is not available.
With component updates on Chrome OS, reboots are required for certain
components to load. This means update_engine should reboot the system
whether or not the actual system image was updated.
BUG=chromium:630421
TEST=emerge-${BOARD} update_engine
Change-Id: Id9b57c46919786719a06204a5fe7f2b461fa88a9
Reviewed-on: https://chromium-review.googlesource.com/414256
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
diff --git a/update_attempter.cc b/update_attempter.cc
index 8f19f51..8e8a13d 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -811,12 +811,6 @@
}
bool UpdateAttempter::RebootIfNeeded() {
- if (status_ != UpdateStatus::UPDATED_NEED_REBOOT) {
- LOG(INFO) << "Reboot requested, but status is "
- << UpdateStatusToString(status_) << ", so not rebooting.";
- return false;
- }
-
if (USE_POWER_MANAGEMENT && RequestPowerManagerReboot())
return true;