[PATCH] Get the UUID of each md array we create. (#491796)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devices.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index f8aaac2..2f1319e 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -107,7 +107,7 @@ import platform
 
 from errors import *
 from iutil import log_method_call, notify_kernel, numeric_type
-from udev import udev_settle
+from udev import *
 from formats import get_device_format_class, getFormat
 
 import gettext
@@ -2287,8 +2287,9 @@ class MDRaidArrayDevice(StorageDevice):
         # the array is automatically activated upon creation, but...
         self.setup()
         udev_settle()
-
-        # FIXME: we need to find our UUID now that the array exists
+        self.updateSysfsPath()
+        info = udev_get_block_device("/sys%s" % self.sysfsPath)
+        self.uuid = udev_device_get_md_uuid(info)
 
     @property
     def formatArgs(self):
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux