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

Brian C. Lane bcl at redhat.com
Wed Jul 24 16:39:41 UTC 2013


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
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list