summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Astone <ales.astone@gmail.com>2020-05-03 22:29:58 +0200
committerAlessandro Astone <ales.astone@gmail.com>2020-05-03 22:32:05 +0200
commit6ec9b91220c9a8e8073a35aaf933a2a98fa371ad (patch)
treeea01fed8898d22b53abdc1b9a4c6d9dba46025c7
parent226d851d24f3fe50482a295692c0b45d9451cd7e (diff)
downloadsystem_core-6ec9b91220c9a8e8073a35aaf933a2a98fa371ad.tar.gz
system_core-6ec9b91220c9a8e8073a35aaf933a2a98fa371ad.tar.bz2
system_core-6ec9b91220c9a8e8073a35aaf933a2a98fa371ad.zip
fs_mgr: skip setting rootfs block as ro during mount_all in recovery
Change-Id: I418aa8480828671cfc04aedf0d88daf1eb3c1e96
-rw-r--r--fs_mgr/fs_mgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp
index 0d4508a22..f2d34c711 100644
--- a/fs_mgr/fs_mgr.cpp
+++ b/fs_mgr/fs_mgr.cpp
@@ -1128,9 +1128,11 @@ int fs_mgr_mount_all(Fstab* fstab, int mount_mode) {
// Skip mounting the root partition, as it will already have been mounted.
if (current_entry.mount_point == "/" || current_entry.mount_point == "/system") {
+#ifndef SKIP_SET_BLK_RO
if ((current_entry.flags & MS_RDONLY) != 0) {
fs_mgr_set_blk_ro(current_entry.blk_device);
}
+#endif
continue;
}