Do not unmount /mnt/product/* when vold starts
Bug: 110808288 Test: Boot a device and checks /mnt/product/foo mounted in early mount isn't unmounted. Change-Id: Ide411cd78565505bc72ed57e79f3d31b6392b27c
This commit is contained in:
parent
e98adee732
commit
c0cd37be9d
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