From 2b2f423ef694a03f4fd429b1d3fa221619131df4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 29 Oct 2018 18:48:56 -0700 Subject: recovery: Fix mounting /system with dynamic partitions. When using dynamic partitions, the blk_device field in fstab_rec must be translated to a /dev/block/dm-N node with fs_mgr_update_logical_partition. However, init will not have created these nodes to begin with since CreateLogicalPartitions is not called in recovery. This patch addresses both issues. Note that flashing system through fastbootd will not work while /system is mounted. Bug: 118634720 Test: manual test Change-Id: I06c83309d09eab6b65245b1ed10c51d05398f23e --- roots.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roots.h') diff --git a/roots.h b/roots.h index 46bb77e02..702af8de5 100644 --- a/roots.h +++ b/roots.h @@ -53,4 +53,6 @@ int format_volume(const char* volume, const char* directory); // mounted (/tmp and /cache) are mounted. Returns 0 on success. int setup_install_mounts(); +bool logical_partitions_mapped(); + #endif // RECOVERY_ROOTS_H_ -- cgit v1.2.3