Merge "Do not unmount /mnt/product/* when vold starts"
This commit is contained in:
commit
4a625453bf
1 changed files with 2 additions and 1 deletions
|
@ -754,7 +754,8 @@ int VolumeManager::unmountAll() {
|
|||
while ((mentry = getmntent(fp)) != NULL) {
|
||||
auto test = std::string(mentry->mnt_dir);
|
||||
if ((android::base::StartsWith(test, "/mnt/") &&
|
||||
!android::base::StartsWith(test, "/mnt/vendor")) ||
|
||||
!android::base::StartsWith(test, "/mnt/vendor") &&
|
||||
!android::base::StartsWith(test, "/mnt/product")) ||
|
||||
android::base::StartsWith(test, "/storage/")) {
|
||||
toUnmount.push_front(test);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue