Loading fs_mgr/fs_mgr_overlayfs.cpp +5 −11 Original line number Original line Diff line number Diff line Loading @@ -556,17 +556,11 @@ std::vector<std::string> fs_mgr_candidate_list(const fstab* fstab, return mounts; return mounts; } } // Manually check dm state because stunted fstab (w/o system as root) borken // We have a stunted fstab (w/o system or / ) passed in by the caller, auto& dm = DeviceMapper::Instance(); // verity claims are assumed accurate because they are collected internally auto found = false; // from fs_mgr_fstab_default() from within fs_mgr_update_verity_state(), for (auto& system : {"system", "vroot"}) { // Can (re)evaluate /system with impunity since we know it is ever-present. if (dm.GetState(system) == DmDeviceState::INVALID) continue; mounts.emplace_back("/system"); std::vector<DeviceMapper::TargetInfo> table; found = !dm.GetTableStatus(system, &table) || table.empty() || table[0].data.empty() || (table[0].data[0] == 'C') || (table[0].data[0] == 'V'); if (found) break; } if (!found) mounts.emplace_back("/system"); return mounts; return mounts; } } Loading Loading
fs_mgr/fs_mgr_overlayfs.cpp +5 −11 Original line number Original line Diff line number Diff line Loading @@ -556,17 +556,11 @@ std::vector<std::string> fs_mgr_candidate_list(const fstab* fstab, return mounts; return mounts; } } // Manually check dm state because stunted fstab (w/o system as root) borken // We have a stunted fstab (w/o system or / ) passed in by the caller, auto& dm = DeviceMapper::Instance(); // verity claims are assumed accurate because they are collected internally auto found = false; // from fs_mgr_fstab_default() from within fs_mgr_update_verity_state(), for (auto& system : {"system", "vroot"}) { // Can (re)evaluate /system with impunity since we know it is ever-present. if (dm.GetState(system) == DmDeviceState::INVALID) continue; mounts.emplace_back("/system"); std::vector<DeviceMapper::TargetInfo> table; found = !dm.GetTableStatus(system, &table) || table.empty() || table[0].data.empty() || (table[0].data[0] == 'C') || (table[0].data[0] == 'V'); if (found) break; } if (!found) mounts.emplace_back("/system"); return mounts; return mounts; } } Loading