Fix ssd detection for MMC devices.
This commit is contained in:
parent
28695652fb
commit
bbe06aa587
@ -70,6 +70,8 @@ def disk_name_for_partition(partition):
|
||||
:return:
|
||||
"""
|
||||
name = os.path.basename(partition["device"])
|
||||
if name.startswith("/dev/mmcblk"):
|
||||
return re.sub("p[0-9]+$", "", name)
|
||||
return re.sub("[0-9]+$", "", name)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user