[PATCH] Fix install issue when many LUNs and LUN paths present.

Brian C. Lane bcl at redhat.com
Wed Jan 21 01:24:09 UTC 2015


On Tue, Jan 20, 2015 at 02:12:09PM -0500, Robert Marshall wrote:
> If installing a system with over 250 LUN paths the blivet subsystem
> would crash with an error. Partnered with David Lehman and he was
> able to provide a solution.
> 
> Resolves rhbz#1181336
> ---
>  blivet/udev.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/blivet/udev.py b/blivet/udev.py
> index 65652bd..c23ce7e 100644
> --- a/blivet/udev.py
> +++ b/blivet/udev.py
> @@ -577,7 +577,7 @@ def device_is_biosraid_member(info):
>      return False
>  
>  def device_get_dm_partition_disk(info):
> -    return re.sub(r'p?\d*$', '', device_get_name(info))
> +    return os.path.basename(os.path.dirname(device_get_sysfs_path(info)))
>  
>  def device_is_dm_partition(info):
>      return (device_is_dm(info) and
> -- 
> 2.1.0

Looks good to me.

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


More information about the anaconda-patches mailing list