aboutsummaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorMohamad Ayyash <mkayyash@google.com>2015-06-29 18:57:14 -0700
committerSimon Wilson <simonwilson@google.com>2015-07-01 10:13:16 -0700
commit0ddfa329acb1e6464fe5d66b58257013abf21116 (patch)
tree554f044f51db7947d46d3c0d1003e87888548b62 /roots.cpp
parentc94fa0b01b43709531dfbcdb94abb2a1cc23be3d (diff)
downloadbootable_recovery-0ddfa329acb1e6464fe5d66b58257013abf21116.zip
bootable_recovery-0ddfa329acb1e6464fe5d66b58257013abf21116.tar.gz
bootable_recovery-0ddfa329acb1e6464fe5d66b58257013abf21116.tar.bz2
Allow mounting squashfs partitions
Change-Id: Ic023eb7d8a11e2a65172a23ff39fa902ef566183 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/roots.cpp b/roots.cpp
index ee14016..bca4b57 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -111,6 +111,7 @@ int ensure_path_mounted(const char* path) {
}
return mtd_mount_partition(partition, v->mount_point, v->fs_type, 0);
} else if (strcmp(v->fs_type, "ext4") == 0 ||
+ strcmp(v->fs_type, "squashfs") == 0 ||
strcmp(v->fs_type, "vfat") == 0) {
result = mount(v->blk_device, v->mount_point, v->fs_type,
MS_NOATIME | MS_NODEV | MS_NODIRATIME, "");