init: First Stage Mount observe nofail mount flag

MountPartitions should respect nofail.  The nofail flag makes the
partition optional.

Test: manual (future code using feature), and smoke test
Bug: 109821005
Bug: 78914864
Change-Id: I715a66ef1abbe223b0cefe5bd2758f63352b1afc
This commit is contained in:
Mark Salyzyn 2018-08-29 16:58:52 -07:00
parent c47c508dcd
commit eafc1c3d58
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ bool FirstStageMount::MountPartitions() {
}
for (auto fstab_rec : mount_fstab_recs_) {
if (!MountPartition(fstab_rec)) {
if (!MountPartition(fstab_rec) && !fs_mgr_is_nofail(fstab_rec)) {
return false;
}
}