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:
parent
997c8f02b1
commit
05d9eabe71
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue