[master/rhel7] Fix driver disk path for inst.dd= method (#987513)

Vratislav Podzimek vpodzime at redhat.com
Thu Jul 25 07:18:14 UTC 2013


On Wed, 2013-07-24 at 09:39 -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
> 
> When inst.dd=<device> was passed it was looking for arch next to rhdd3
> instead of under /rpms/
> 
> Resolves: rhbz#987513
> ---
>  dracut/driver-updates | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/dracut/driver-updates b/dracut/driver-updates
> index 00c97ef..1800087 100755
> --- a/dracut/driver-updates
> +++ b/dracut/driver-updates
> @@ -232,8 +232,9 @@ def find_dd(mnt="/media/DD"):
>      dd_repos = []
>      arch = os.uname()[4]
>      for root, dirs, files in os.walk(mnt, followlinks=True):
> -        if "rhdd3" in files and arch in dirs:
> -            dd_repos.append(root+"/"+arch)
> +        if "rhdd3" in files and "rpms" in dirs and \
> +          os.path.exists(root+"/rpms/"+arch):
> +            dd_repos.append(root+"/rpms/"+arch)
>      log.debug("Found repos - %s" % " ".join(dd_repos))
>      return dd_repos
>  
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list