diff --git a/recovery/oem-recovery/gpt-utils.cpp b/recovery/oem-recovery/gpt-utils.cpp index 3e512a04..dbf17455 100644 --- a/recovery/oem-recovery/gpt-utils.cpp +++ b/recovery/oem-recovery/gpt-utils.cpp @@ -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;