Merge "init: Don't fail first stage mount for formattable partitions."

This commit is contained in:
David Anderson 2018-12-21 07:52:42 +00:00 committed by Gerrit Code Review
commit bcede5f61a

View file

@ -395,6 +395,11 @@ bool FirstStageMount::MountPartition(FstabEntry* fstab_entry) {
return false;
}
if (fs_mgr_do_mount_one(*fstab_entry)) {
if (fstab_entry->fs_mgr_flags.formattable) {
PLOG(INFO) << "Failed to mount '" << fstab_entry->mount_point << "', "
<< "ignoring mount for formattable partition";
return true;
}
PLOG(ERROR) << "Failed to mount '" << fstab_entry->mount_point << "'";
return false;
}