From 31b741174c7f806de837c90871de2e136c954b8c Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 20 Dec 2010 08:49:20 -0800 Subject: [PATCH] Fix fstab generation. Change-Id: Ibab3c93c55abcece80a89bbff620f164588baf96 --- extendedcommands.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extendedcommands.c b/extendedcommands.c index ad83a0a..8d1f226 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -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); }