summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/devicetree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 08846f337..a5fd63f1f 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1279,6 +1279,9 @@ class DeviceTree(object):
log.debug("%s is a partition" % name)
if device is None:
device = self.addUdevPartitionDevice(info)
+ else:
+ log.error("Unknown block device type for: %s" % name)
+ return
# If this device is protected, mark it as such now. Once the tree
# has been populated, devices' protected attribute is how we will