mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-24 07:58:22 -04:00
Fix ssd detection for MMC devices.
This commit is contained in:
parent
28695652fb
commit
bbe06aa587
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue