From 49327806062652db999f3f0a7f360edb3047791a Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Mon, 26 Nov 2018 14:59:09 -0800 Subject: SYSTEM_ROOT -> get_system_root Add a get_system_root() function in roots.cpp which returns / or /system based on fstab. This factors out the 'if' check from recovery.cpp and fsck_unshare_blocks.cpp. Test: boot recovery, mount system Bug: 118634720 Change-Id: If4947cba3a3f08dbe695fd2b50a9354cd302ee03 --- roots.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roots.h') diff --git a/roots.h b/roots.h index 702af8de5..314eb5f26 100644 --- a/roots.h +++ b/roots.h @@ -55,4 +55,6 @@ int setup_install_mounts(); bool logical_partitions_mapped(); +std::string get_system_root(); + #endif // RECOVERY_ROOTS_H_ -- cgit v1.2.3