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

Commit c0524606 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fs_mgr_overlayfs: Fallback to allocate scratch on super if /data failed"

parents 7952a7b0 1c76ccb5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1133,7 +1133,9 @@ bool fs_mgr_overlayfs_create_scratch(const Fstab& fstab, std::string* scratch_de
    // Try ImageManager on /data first.
    bool can_use_data = false;
    if (FilesystemHasReliablePinning("/data", &can_use_data) && can_use_data) {
        return CreateScratchOnData(scratch_device, partition_exists);
        if (CreateScratchOnData(scratch_device, partition_exists)) {
            return true;
        }
    }
    // If that fails, see if we can land on super.
    if (CanUseSuperPartition(fstab)) {