Use the primary device.

Change-Id: Id45fcedcb5b3cacd753346a117423a462a00efb2
This commit is contained in:
Koushik Dutta 2010-09-03 22:16:57 -07:00
parent 91e9e830e2
commit 4233c7fb3c

View File

@ -922,14 +922,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);