common.py: Add support for squashfs

Change-Id: Ia40f8c6307d0213d43207aee91c4c8a5b5ad6f1e
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
This commit is contained in:
Mohamad Ayyash 2015-05-01 15:39:36 -07:00 committed by Simon Wilson
parent cade49ddee
commit 1b748051dd
1 changed files with 8 additions and 3 deletions

View File

@ -1115,9 +1115,14 @@ DataImage = blockimgdiff.DataImage
# map recovery.fstab's fs_types to mount/format "partition types" # map recovery.fstab's fs_types to mount/format "partition types"
PARTITION_TYPES = { "yaffs2": "MTD", "mtd": "MTD", PARTITION_TYPES = {
"ext4": "EMMC", "emmc": "EMMC", "yaffs2": "MTD",
"f2fs": "EMMC" } "mtd": "MTD",
"ext4": "EMMC",
"emmc": "EMMC",
"f2fs": "EMMC",
"squashfs": "EMMC"
}
def GetTypeAndDevice(mount_point, info): def GetTypeAndDevice(mount_point, info):
fstab = info["fstab"] fstab = info["fstab"]