aboutsummaryrefslogtreecommitdiffstats
path: root/roots.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2013-08-20 16:03:25 -0700
committerDoug Zongker <dougz@google.com>2013-08-21 13:44:35 -0700
commit239ac6abac4524be93fce710360c0512c6cc2ab3 (patch)
tree55428f9ad654b63d4002ca94902440648c955b96 /roots.h
parentc0441d171914e59941ec4f815ae0aabf56d6504f (diff)
downloadbootable_recovery-239ac6abac4524be93fce710360c0512c6cc2ab3.zip
bootable_recovery-239ac6abac4524be93fce710360c0512c6cc2ab3.tar.gz
bootable_recovery-239ac6abac4524be93fce710360c0512c6cc2ab3.tar.bz2
recovery: install packages in a known mount environment
When installing a package, we should have /tmp and /cache mounted and nothing else. Ensure this is true by explicitly mounting them and unmounting everything else as the first step of every install. Also fix an error in the progress bar that crops up when you do multiple package installs in one instance of recovery. Change-Id: I4837ed707cb419ddd3d9f6188b6355ba1bcfe2b2
Diffstat (limited to 'roots.h')
-rw-r--r--roots.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/roots.h b/roots.h
index 8abe18f..230d9de 100644
--- a/roots.h
+++ b/roots.h
@@ -42,6 +42,10 @@ int ensure_path_unmounted(const char* path);
// it is mounted.
int format_volume(const char* volume);
+// Ensure that all and only the volumes that packages expect to find
+// mounted (/tmp and /cache) are mounted. Returns 0 on success.
+int setup_install_mounts();
+
#ifdef __cplusplus
}
#endif