summaryrefslogtreecommitdiffstats
path: root/booty/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'booty/util.py')
-rw-r--r--booty/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/booty/util.py b/booty/util.py
index 74ba561ed..41287059d 100644
--- a/booty/util.py
+++ b/booty/util.py
@@ -1,11 +1,13 @@
import string
+from flags import flags
def getDiskPart(dev, storage):
path = storage.devicetree.getDeviceByName(dev).path[5:]
cut = len(dev)
if (path.startswith('rd/') or path.startswith('ida/') or
path.startswith('cciss/') or path.startswith('sx8/') or
- path.startswith('mapper/') or path.startswith('mmcblk')):
+ path.startswith('mapper/') or path.startswith('mmcblk') or
+ path.startswith('md')):
if dev[-2] == 'p':
cut = -1
elif dev[-3] == 'p':