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

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

Merge "init: skip early mount in recovery mode" am: 8951c131

am: 6befc485

Change-Id: I5963d2f181fe9ce9bfed982f54a8e1b152d7dd26
parents fc41c88f 6befc485
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -790,6 +790,12 @@ static bool get_early_partitions(const std::vector<fstab_rec*>& early_fstab_recs

/* Early mount vendor and ODM partitions. The fstab is read from device-tree. */
static bool early_mount() {
    // skip early mount if we're in recovery mode
    if (access("/sbin/recovery", F_OK) == 0) {
        LOG(INFO) << "Early mount skipped (recovery mode)";
        return true;
    }

    // first check if device tree fstab entries are compatible
    if (!is_dt_fstab_compatible()) {
        LOG(INFO) << "Early mount skipped (missing/incompatible fstab in device tree)";