[PATCH] Fix install issue when many LUNs and LUN paths present.
Vratislav Podzimek
vpodzime at redhat.com
Wed Jan 21 07:33:42 UTC 2015
On Tue, 2015-01-20 at 14:12 -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)))
>
I may be missing something, but I don't see how the original statement
causes a crash. Is it that names of LUNs start with some other letter if
there are more than 250 of them?
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list