Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8829d7a authored by Bowgo Tsai's avatar Bowgo Tsai Committed by android-build-merger
Browse files

Merge "First-stage mount: avoid triggering a FATAL error"

am: 78393951

Change-Id: Idac1a2c9b922308ec8861c15979e29184dde5bdb
parents 142eeae5 78393951
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -119,10 +119,7 @@ static bool inline IsRecoveryMode() {
FirstStageMount::FirstStageMount()
FirstStageMount::FirstStageMount()
    : need_dm_verity_(false), device_tree_fstab_(fs_mgr_read_fstab_dt(), fs_mgr_free_fstab) {
    : need_dm_verity_(false), device_tree_fstab_(fs_mgr_read_fstab_dt(), fs_mgr_free_fstab) {
    if (!device_tree_fstab_) {
    if (!device_tree_fstab_) {
        // The client of FirstStageMount should check the existence of fstab in device-tree
        LOG(INFO) << "Failed to read fstab from device tree";
        // in advance, without parsing it. Reaching here means there is a FATAL error when
        // parsing the fstab. So stop here to expose the failure.
        LOG(FATAL) << "Failed to read fstab from device tree";
        return;
        return;
    }
    }
    // Stores device_tree_fstab_->recs[] into mount_fstab_recs_ (vector<fstab_rec*>)
    // Stores device_tree_fstab_->recs[] into mount_fstab_recs_ (vector<fstab_rec*>)