[PATCH] Set sysfsPath of LUKSDevice when adding to device tree (#1019638)

mulhern amulhern at redhat.com
Tue Nov 12 15:32:45 UTC 2013


Resolves: rhbz#1019638

Previously, the LUKS device set up in handleUdevLUKSFormat did not have
its sysfsPath field set, now it does, by calling the updateSysfsPath()
method.

The value of the sysfs_path can not be extracted from the arguments to
handleUdevLUKSFormat, because the info argument is for the parent of this
device, not for the device itself.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/devicetree.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 0c60aa2..69b366f 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1185,6 +1185,7 @@ class DeviceTree(object):
                                                      e))
                 device.removeChild()
             else:
+                luks_device.updateSysfsPath()
                 self._addDevice(luks_device)
         else:
             log.warning("luks device %s already in the tree"
-- 
1.8.3.1



More information about the anaconda-patches mailing list