diff --git a/src/modules/fstab/main.py b/src/modules/fstab/main.py index cfd7d2830..d85dba9ff 100644 --- a/src/modules/fstab/main.py +++ b/src/modules/fstab/main.py @@ -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)