diff options
author | Tao Bao <tbao@google.com> | 2015-07-30 14:43:27 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 19:02:26 -0800 |
commit | a6ef5d0e71f81cc8697328e7f64f841943cba0dc (patch) | |
tree | 1641525a09906697f371e317bd086ca565033102 /roots.h | |
parent | a0b7a8b4c77f764b564b9bd4283c61662f16e37d (diff) | |
download | bootable_recovery-a6ef5d0e71f81cc8697328e7f64f841943cba0dc.zip bootable_recovery-a6ef5d0e71f81cc8697328e7f64f841943cba0dc.tar.gz bootable_recovery-a6ef5d0e71f81cc8697328e7f64f841943cba0dc.tar.bz2 |
recovery: Allow "Mount /system" for system_root_image.
When system images contain the root directory, there is no entry of
"/system" in the fstab. Change it to look for "/" instead if
ro.build.system_root_image is true. We actually mount the partition
to /system_root instead, and create a symlink to /system_root/system
for /system. This allows "adb shell" to work properly.
Bug: 22855115
Change-Id: Ibac493a5a9320c98ee3b60bd2cc635b925f5454a
Diffstat (limited to 'roots.h')
-rw-r--r-- | roots.h | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -19,10 +19,6 @@ #include "common.h" -#ifdef __cplusplus -extern "C" { -#endif - // Load and parse volume data from /etc/recovery.fstab. void load_volume_table(); @@ -33,7 +29,10 @@ Volume* volume_for_path(const char* path); // success (volume is mounted). int ensure_path_mounted(const char* path); -// Make sure that the volume 'path' is on is mounted. Returns 0 on +// Similar to ensure_path_mounted, but allows one to specify the mount_point. +int ensure_path_mounted_at(const char* path, const char* mount_point); + +// Make sure that the volume 'path' is on is unmounted. Returns 0 on // success (volume is unmounted); int ensure_path_unmounted(const char* path); @@ -46,8 +45,4 @@ int format_volume(const char* volume); // mounted (/tmp and /cache) are mounted. Returns 0 on success. int setup_install_mounts(); -#ifdef __cplusplus -} -#endif - #endif // RECOVERY_ROOTS_H_ |