From bbe06aa5873ed238215a3ee203fac412c53161fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramon=20Buld=C3=B3?= Date: Fri, 8 May 2015 10:37:54 +0200 Subject: [PATCH] Fix ssd detection for MMC devices. --- src/modules/fstab/main.py | 2 ++ 1 file changed, 2 insertions(+) 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)