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

[PATCH 3/6] Set dm-uuid for anaconda disk image devices from devicetree.



---
 pyanaconda/storage/devices.py    |    2 --
 pyanaconda/storage/devicetree.py |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 959cc62..ad07842 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1656,8 +1656,6 @@ class DMLinearDevice(DMDevice):
         if not parents:
             raise ValueError("DMLinearDevice requires a backing block device")
 
-        dmUuid = "ANACONDA-%s" % name
-
         DMDevice.__init__(self, name, format=format, size=size,
                           parents=parents, sysfsPath=sysfsPath,
                           exists=exists, target="linear", dmUuid=dmUuid)
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 5fbd8a4..1fcfc80 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1581,6 +1581,7 @@ class DeviceTree(object):
                 loopdev.setup()
                 log.debug("%s" % loopdev)
                 dmdev = DMLinearDevice(name,
+                                       dmUuid="ANACONDA-%s" % name,
                                        parents=[loopdev],
                                        exists=True)
                 dmdev.setup()
-- 
1.7.2.3


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