mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-04 12:55:37 -04:00
Support NVME device naming.
This commit is contained in:
parent
4271cfda1f
commit
5a6bc95859
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ def disk_name_for_partition(partition):
|
|||
"""
|
||||
name = os.path.basename(partition["device"])
|
||||
|
||||
if name.startswith("/dev/mmcblk"):
|
||||
if name.startswith("/dev/mmcblk") or name.startswith("/dev/nvme"):
|
||||
return re.sub("p[0-9]+$", "", name)
|
||||
|
||||
return re.sub("[0-9]+$", "", name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue