Do not umount roofs even if it is R/W.

am: b7a8764a12

Change-Id: I56014ac0ae01a5666a58225eed5f89e08859c0d8
This commit is contained in:
Wei Wang 2017-07-25 21:34:50 +00:00 committed by android-build-merger
commit ba6705f9de
1 changed files with 2 additions and 1 deletions

View File

@ -237,7 +237,8 @@ static bool FindPartitionsToUmount(std::vector<MountEntry>* blockDevPartitions,
std::string mount_dir(mentry->mnt_dir);
// These are R/O partitions changed to R/W after adb remount.
// Do not umount them as shutdown critical services may rely on them.
if (mount_dir != "/system" && mount_dir != "/vendor" && mount_dir != "/oem") {
if (mount_dir != "/" && mount_dir != "/system" && mount_dir != "/vendor" &&
mount_dir != "/oem") {
blockDevPartitions->emplace(blockDevPartitions->begin(), *mentry);
}
} else if (MountEntry::IsEmulatedDevice(*mentry)) {