Index: main.cc |
diff --git a/main.cc b/main.cc |
index 9e7a1effe283f23a9cdc666c0eafd17ad9959157..8165c14ed5889f9e320c93c135595905206fa00b 100644 |
--- a/main.cc |
+++ b/main.cc |
@@ -49,7 +49,12 @@ gboolean UpdatePeriodically(void* arg) { |
void SchedulePeriodicUpdateChecks(UpdateAttempter* update_attempter) { |
if (!utils::IsOfficialBuild()) { |
- LOG(WARNING) << "No periodic update checks on non-official builds."; |
+ LOG(WARNING) << "Non-official build: periodic update checks disabled."; |
+ return; |
+ } |
+ |
+ if (utils::IsRemovableDevice(utils::RootDevice(utils::BootDevice()))) { |
+ LOG(WARNING) << "Removable device boot: periodic update checks disabled."; |
return; |
} |