Fix fstab generation.

Change-Id: Ibab3c93c55abcece80a89bbff620f164588baf96
This commit is contained in:
Koushik Dutta 2010-12-20 08:49:20 -08:00
parent bec0995afe
commit 31b741174c

View File

@ -908,7 +908,13 @@ void write_fstab_root(char *path, FILE *file)
return;
}
fprintf(file, "%s ", vol->device);
char device[200];
if (vol->device[0] != '/')
get_partition_device(vol->device, device);
else
strcpy(device, vol->device);
fprintf(file, "%s ", device);
fprintf(file, "%s ", path);
fprintf(file, "%s rw\n", vol->fs_type);
}