Re: [PATCH] Fix support for "part --ondisk=/dev/disk/by-..." (#621515).

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

 



Ack.

On Mon, 2010-11-01 at 09:44 -0400, Chris Lumens wrote:
> ---
>  storage/udev.py |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/udev.py b/storage/udev.py
> index dd540ab..1659b74 100644
> --- a/storage/udev.py
> +++ b/storage/udev.py
> @@ -49,8 +49,12 @@ def udev_resolve_devspec(devspec):
>              ret = dev
>              break
>          else:
> +            spec = devspec
> +            if not spec.startswith("/dev/"):
> +                spec = os.path.normpath("/dev/" + spec)
> +
>              for link in dev["symlinks"]:
> -                if devspec == link:
> +                if spec == link:
>                      ret = dev
>                      break
>  


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux