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

Commit 1b748051 authored by Mohamad Ayyash's avatar Mohamad Ayyash Committed by Simon Wilson
Browse files

common.py: Add support for squashfs



Change-Id: Ia40f8c6307d0213d43207aee91c4c8a5b5ad6f1e
Signed-off-by: default avatarMohamad Ayyash <mkayyash@google.com>
parent cade49dd
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1115,9 +1115,14 @@ DataImage = blockimgdiff.DataImage


# map recovery.fstab's fs_types to mount/format "partition types"
PARTITION_TYPES = { "yaffs2": "MTD", "mtd": "MTD",
                    "ext4": "EMMC", "emmc": "EMMC",
                    "f2fs": "EMMC" }
PARTITION_TYPES = {
    "yaffs2": "MTD",
    "mtd": "MTD",
    "ext4": "EMMC",
    "emmc": "EMMC",
    "f2fs": "EMMC",
    "squashfs": "EMMC"
}

def GetTypeAndDevice(mount_point, info):
  fstab = info["fstab"]