Merge "Search fstab also from /first_stage_ramdisk"

This commit is contained in:
Treehugger Robot 2021-03-02 06:20:37 +00:00 committed by Gerrit Code Review
commit 937611f843

View file

@ -412,7 +412,8 @@ std::string GetFstabPath() {
if (!fs_mgr_get_boot_config(prop, &suffix)) continue;
for (const char* prefix : {"/odm/etc/fstab.", "/vendor/etc/fstab.", "/fstab."}) {
for (const char* prefix :
{"/odm/etc/fstab.", "/vendor/etc/fstab.", "/fstab.", "/first_stage_ramdisk/fstab."}) {
std::string fstab_path = prefix + suffix;
if (access(fstab_path.c_str(), F_OK) == 0) {
return fstab_path;