VintfObjectRecovery: mount all partitions in fstab am: 856b7bd42c
am: d508e78819
Change-Id: I1a15f727ab5cde20bd76598d0f37e79c309298a2
diff --git a/VintfObjectRecovery.cpp b/VintfObjectRecovery.cpp
index 9cfb5a9..5b688c6 100644
--- a/VintfObjectRecovery.cpp
+++ b/VintfObjectRecovery.cpp
@@ -36,7 +36,6 @@
static const char* const kMountImageRootDir = "/mnt";
static const char* const kSystemImageRootDir = "/mnt/system";
-static const char* const kVendorImageRootDir = "/mnt/vendor";
static status_t mountAt(const FstabMgr& fstab, const char* path, const char* mountPoint) {
mkdir(mountPoint, 0755); // in case it doesn't already exist
@@ -76,10 +75,7 @@
return mount("/system", kSystemImageRootDir);
}
}
- if (path == "/vendor") {
- return mount(path, kVendorImageRootDir);
- }
- return BAD_VALUE;
+ return mount(path, kMountImageRootDir + path);
}
private: