diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp index 8c2e00107..3199c0d88 100644 --- a/fs_mgr/fs_mgr.cpp +++ b/fs_mgr/fs_mgr.cpp @@ -1736,6 +1736,11 @@ int fs_mgr_remount_userdata_into_checkpointing(Fstab* fstab) { // wrapper to __mount() and expects a fully prepared fstab_rec, // unlike fs_mgr_do_mount which does more things with avb / verity etc. int fs_mgr_do_mount_one(const FstabEntry& entry, const std::string& mount_point) { + // First check the filesystem if requested. + if (entry.fs_mgr_flags.wait && !WaitForFile(entry.blk_device, 20s)) { + LERROR << "Skipping mounting '" << entry.blk_device << "'"; + } + // Run fsck if needed prepare_fs_for_mount(entry.blk_device, entry);