summaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-07-30 02:08:50 +0200
committerDoug Zongker <dougz@android.com>2010-07-30 02:08:50 +0200
commitdc9e87c44bac4504aed26061736cbc6e439bec51 (patch)
treeb24fe3af97a3b6b8e979f7007dd3d4d83d2d562f /roots.c
parentMute unwanted error message (diff)
downloadandroid_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.tar
android_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.tar.gz
android_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.tar.bz2
android_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.tar.lz
android_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.tar.xz
android_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.tar.zst
android_bootable_recovery-dc9e87c44bac4504aed26061736cbc6e439bec51.zip
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/roots.c b/roots.c
index 762bdf382..10b93d48a 100644
--- a/roots.c
+++ b/roots.c
@@ -54,7 +54,6 @@ static RootInfo g_roots[] = {
{ "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
{ "PACKAGE:", NULL, NULL, NULL, NULL, g_package_file },
{ "RECOVERY:", g_mtd_device, NULL, "recovery", "/", g_raw },
- { "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", g_ramdisk },
@@ -64,16 +63,16 @@ static RootInfo g_roots[] = {
"/cache", "ext4" },
{ "DATA:", "/dev/block/platform/sdhci-tegra.3/by-name/userdata", NULL, NULL,
"/data", "ext4" },
+ { "EXT:", "/dev/block/sda1", NULL, NULL, "/sdcard", "vfat" },
#else
{ "CACHE:", g_mtd_device, NULL, "cache", "/cache", "yaffs2" },
{ "DATA:", g_mtd_device, NULL, "userdata", "/data", "yaffs2" },
+ { "EXT:", "/dev/block/mmcblk0p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" },
#endif
};
#define NUM_ROOTS (sizeof(g_roots) / sizeof(g_roots[0]))
-// TODO: for SDCARD:, try /dev/block/mmcblk0 if mmcblk0p1 fails
-
static const RootInfo *
get_root_info_for_path(const char *root_path)
{