summaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-07-09 18:13:51 +0200
committerDoug Zongker <dougz@android.com>2010-07-09 18:13:51 +0200
commit050d0f7fec309a51d1e616a98882faaf3655e04e (patch)
treed37922f6f059d9a242bf4ef3b29c90e127c1c175 /roots.c
parentEMMC support in applypatch (diff)
parentam 23ceeea8: make a copy of sideloaded packages in /tmp before verifying (diff)
downloadandroid_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.tar
android_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.tar.gz
android_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.tar.bz2
android_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.tar.lz
android_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.tar.xz
android_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.tar.zst
android_bootable_recovery-050d0f7fec309a51d1e616a98882faaf3655e04e.zip
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/roots.c b/roots.c
index edb202e89..762bdf382 100644
--- a/roots.c
+++ b/roots.c
@@ -47,6 +47,7 @@ xxx may just want to use enums
static const char g_mtd_device[] = "@\0g_mtd_device";
static const char g_raw[] = "@\0g_raw";
static const char g_package_file[] = "@\0g_package_file";
+static const char g_ramdisk[] = "@\0g_ramdisk";
static RootInfo g_roots[] = {
{ "BOOT:", g_mtd_device, NULL, "boot", NULL, g_raw },
@@ -56,7 +57,7 @@ static RootInfo g_roots[] = {
{ "SDCARD:", "/dev/block/mmcblk0p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" },
{ "SYSTEM:", g_mtd_device, NULL, "system", "/system", "yaffs2" },
{ "MBM:", g_mtd_device, NULL, "mbm", NULL, g_raw },
- { "TMP:", NULL, NULL, NULL, "/tmp", NULL },
+ { "TMP:", NULL, NULL, NULL, "/tmp", g_ramdisk },
#ifdef USE_EXT4
{ "CACHE:", "/dev/block/platform/sdhci-tegra.3/by-name/cache", NULL, NULL,
@@ -194,7 +195,9 @@ internal_root_mounted(const RootInfo *info)
if (info->mount_point == NULL) {
return -1;
}
-//xxx if TMP: (or similar) just say "yes"
+ if (info->filesystem == g_ramdisk) {
+ return 0;
+ }
/* See if this root is already mounted.
*/