summaryrefslogtreecommitdiffstats
path: root/storage/devicetree.py
diff options
context:
space:
mode:
Diffstat (limited to 'storage/devicetree.py')
-rw-r--r--storage/devicetree.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 9248cd688..9eec29996 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1568,6 +1568,13 @@ class DeviceTree(object):
parents=[device])
self._addDevice(dm_array)
+
+ # Get the DMRaidArrayDevice a DiskLabel format *now*, in case
+ # its partitions get scanned before it does.
+ dm_array.updateSysfsPath()
+ dm_array_info = udev_get_block_device(dm_array.sysfsPath)
+ self.handleUdevDiskLabelFormat(dm_array_info, dm_array)
+
# Use the rs's object on the device.
# pyblock can return the memebers of a set and the
# device has the attribute to hold it. But ATM we