favor primary device always for fstab

This commit is contained in:
Koushik Dutta 2010-09-20 19:21:52 -07:00
parent 23ce6b14ae
commit 7f4ff5cd3a
2 changed files with 2 additions and 9 deletions

View File

@ -44,7 +44,7 @@ LOCAL_MODULE := recovery
LOCAL_FORCE_STATIC_EXECUTABLE := true
RECOVERY_VERSION := ClockworkMod Recovery v2.5.0.9
RECOVERY_VERSION := ClockworkMod Recovery v2.5.1.0
LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
RECOVERY_API_VERSION := 2
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)

View File

@ -924,14 +924,7 @@ void write_fstab_root(char *root_path, FILE *file)
}
else
{
// only SDCARD: seems to be using device2.
// and mmcblkXp1 is the fallback/device2.
// However, generally, mmcblkXp1 is usually where the
// FAT partition is located... so favor that.
if (NULL == info->device2)
fprintf(file, "%s ", info->device);
else
fprintf(file, "%s ", info->device2);
fprintf(file, "%s ", info->device);
}
fprintf(file, "%s ", info->mount_point);