fs_mgr: skip fs_mgr_overlayfs_required_devices w/o overlayfs in kernel

Check if overlayfs is supplied in the kernel before proceeding to
determining if there is a disabled verity and an overlayfs filesystem
to deploy.

Test: adb-remount-test.sh
Bug: 119929969
Change-Id: I28116f0aa6959040bb9f38f46c058a221591f735
This commit is contained in:
Mark Salyzyn 2018-11-28 13:07:56 -08:00
parent 4055587ddd
commit 3a08c73ae0

View file

@ -790,6 +790,8 @@ bool fs_mgr_overlayfs_mount_all(const std::vector<const fstab_rec*>& fsrecs) {
}
std::vector<std::string> fs_mgr_overlayfs_required_devices(fstab* fstab) {
if (fs_mgr_overlayfs_valid() == OverlayfsValidResult::kNotSupported) return {};
if (fs_mgr_get_entry_for_mount_point(const_cast<struct fstab*>(fstab), kScratchMountPoint)) {
return {};
}