aboutsummaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2010-11-27 17:53:50 -0800
committerKoushik Dutta <koushd@gmail.com>2010-11-27 17:53:50 -0800
commitddc2e39dcf291101f05d6496b041fb72f2461ad2 (patch)
treea40dd735599a41e55c59a48aa1529ca28482bb2e /roots.c
parentd90ad5dedfdf7a638d839d12fcc2a72d91b004e7 (diff)
downloadandroid_bootable_recovery-ddc2e39dcf291101f05d6496b041fb72f2461ad2.tar.gz
android_bootable_recovery-ddc2e39dcf291101f05d6496b041fb72f2461ad2.tar.bz2
android_bootable_recovery-ddc2e39dcf291101f05d6496b041fb72f2461ad2.zip
fix fstab generation
Change-Id: I223a07fd0ce3c0d48b7f18f5c42ae204affe087a
Diffstat (limited to 'roots.c')
-rw-r--r--roots.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/roots.c b/roots.c
index 39179e9a..19855b20 100644
--- a/roots.c
+++ b/roots.c
@@ -302,12 +302,13 @@ int
get_root_partition_device(const char *root_path, char *device)
{
const RootInfo *info = get_root_info_for_path(root_path);
- if (info == NULL || info->device != g_default_device ||
- info->partition_name == NULL)
+ if (info == NULL)
{
return NULL;
}
- return get_partition_device(info->partition_name, device);
+ if (info->device == g_default_device)
+ return get_partition_device(info->partition_name, device);
+ return info->device;
}
#ifndef BOARD_HAS_NO_MISC_PARTITION