roots.cpp: convert to C++ Fstab

Convert code to use C++ Fstab struct and C++ std::strings.

Bug: 62292478
Bug: 118634720
Test: boots
Change-Id: Ibdc1df5831bc885d7c1574419f41af026e49a137
This commit is contained in:
Yifan Hong
2018-12-17 14:29:06 -08:00
parent 0f339e27bb
commit d81b8e3d77
6 changed files with 57 additions and 61 deletions
+2 -2
View File
@@ -595,9 +595,9 @@ static int really_install_package(const std::string& path, bool* wipe_cache, boo
if (needs_mount) {
if (path[0] == '@') {
ensure_path_mounted(path.substr(1).c_str());
ensure_path_mounted(path.substr(1));
} else {
ensure_path_mounted(path.c_str());
ensure_path_mounted(path);
}
}