CentOs partition to debian failing with multipath
In the script when updating the CentOs partition to Debian occurs a mismatch with multipath paths. This fix is specific to upgrade multipath systems Test Plan: PASS: Upgrade AIO-SX with multipath PASS: Upgrade AIO-DX with multipath PASS: Upgrade AIO-SX without multipath PASS: Upgrade AIO-DX without multipath Closes-bug: 2007690 Change-Id: I833381a7dfdc89327e271d3772ee90012383cb95 Signed-off-by: Lucas Borges <lucas.borges@windriver.com>
This commit is contained in:
parent
7870ef62ce
commit
f2549ad097
@ -268,8 +268,8 @@ def is_device_path_on_disk(device_path, disk_device_path, disk_device_node):
|
||||
if disk_device_path in device_path:
|
||||
return True
|
||||
elif constants.DEVICE_NAME_MPATH in disk_device_node:
|
||||
path_split = disk_device_node.split(constants.DEVICE_NAME_MPATH)
|
||||
if path_split[0] in device_path and path_split[1] in device_path:
|
||||
split_path = device_path.split("-part")
|
||||
if split_path[0] in disk_device_path:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user