oem-recovery: Update emmc dev block path in gpt-utils

Update the emmc dev block path that is being used
in gpt-utils with correct path - /dev/block/mmcblk0.

Change-Id: Ie8f459ea5f8d913cc34fe7a64b651bb3016b9883
This commit is contained in:
padarshr 2017-02-02 20:36:35 +05:30 committed by Gerrit - the friendly Code Review server
parent 997c8f02b1
commit 05d9eabe71
1 changed files with 2 additions and 2 deletions

View File

@ -1057,7 +1057,7 @@ int prepare_boot_update(enum boot_update_stage stage)
//Given a parttion name(eg: rpm) get the path to the block device that
//represents the GPT disk the partition resides on. In the case of emmc it
//would be the default emmc dev(/dev/mmcblk0). In the case of UFS we look
//would be the default emmc dev(/dev/block/mmcblk0). In the case of UFS we look
//through the /dev/block/bootdevice/by-name/ tree for partname, and resolve
//the path to the LUN from there.
static int get_dev_path_from_partition_name(const char *partname,
@ -1086,7 +1086,7 @@ static int get_dev_path_from_partition_name(const char *partname,
buf[PATH_TRUNCATE_LOC] = '\0';
}
} else {
snprintf(buf, buflen, "/dev/mmcblk0");
snprintf(buf, buflen, BLK_DEV_FILE);
}
return 0;