[PATCH 3/4] Correct lookup of raid.XX "mountpoints" for kickstart installs (#864764).

y at redhat.com y at redhat.com
Wed Oct 10 19:19:58 UTC 2012


From: Chris Lumens <clumens at redhat.com>

---
 pyanaconda/kickstart.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 7ff41a5..156f94d 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1142,8 +1142,8 @@ class RaidData(commands.raid.F15_RaidData):
         # Get a list of all the RAID members.
         for member in self.members:
             # if member is using --onpart, use original device
-            mem = ksdata.onPart.get(member, member) or lookupAlias(devicetree, member)
-            dev = devicetree.getDeviceByName(mem)
+            mem = ksdata.onPart.get(member, member)
+            dev = devicetree.getDeviceByName(mem) or lookupAlias(devicetree, mem)
             if dev and dev.format.type == "luks":
                 try:
                     dev = devicetree.getChildren(dev)[0]
-- 
1.7.11.2



More information about the anaconda-patches mailing list