Add erofs to supported fs type

Since erofs image has been supported, we should add erofs to supported
fs type so that it can be mounted in recovery mode.

Bug:174816929
Test: mount erofs image in recovery on cuttlefish
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Change-Id: I4199ff87acfc179a2b83d98b1675fc898144878b
This commit is contained in:
Huang Jianan 2020-12-04 15:16:17 +08:00 committed by jianan huang
parent 2e67e77752
commit e1b25cd9ee
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ bool EnsurePathMounted(Fstab* fstab, const std::string& path, const std::string&
return true;
}
static const std::vector<std::string> supported_fs{"ext4", "squashfs", "vfat", "f2fs", "none"};
static const std::vector<std::string> supported_fs{"ext4", "squashfs", "vfat", "f2fs", "erofs",
"none"};
if (std::find(supported_fs.begin(), supported_fs.end(), rec->fs_type) == supported_fs.end()) {
LERROR << "unknown fs_type \"" << rec->fs_type << "\" for " << mount_point;
return false;