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

Brian C. Lane bcl at redhat.com
Wed Nov 13 01:57:46 UTC 2013


On Tue, Nov 12, 2013 at 10:32:45AM -0500, mulhern wrote:
> 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
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list