summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/reboot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/reboot.cpp b/init/reboot.cpp
index e4779c7e2..17e3576a7 100644
--- a/init/reboot.cpp
+++ b/init/reboot.cpp
@@ -237,7 +237,8 @@ static bool FindPartitionsToUmount(std::vector<MountEntry>* blockDevPartitions,
237 std::string mount_dir(mentry->mnt_dir); 237 std::string mount_dir(mentry->mnt_dir);
238 // These are R/O partitions changed to R/W after adb remount. 238 // These are R/O partitions changed to R/W after adb remount.
239 // Do not umount them as shutdown critical services may rely on them. 239 // Do not umount them as shutdown critical services may rely on them.
240 if (mount_dir != "/system" && mount_dir != "/vendor" && mount_dir != "/oem") { 240 if (mount_dir != "/" && mount_dir != "/system" && mount_dir != "/vendor" &&
241 mount_dir != "/oem") {
241 blockDevPartitions->emplace(blockDevPartitions->begin(), *mentry); 242 blockDevPartitions->emplace(blockDevPartitions->begin(), *mentry);
242 } 243 }
243 } else if (MountEntry::IsEmulatedDevice(*mentry)) { 244 } else if (MountEntry::IsEmulatedDevice(*mentry)) {