[PATCH] Fix ks raid --useexisting and --noformat

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

 



---
 kickstart.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index b21b8ea..972b8e8 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -719,8 +719,8 @@ class Raid(commands.raid.F9_Raid):
             if not dev:
                 raise KickstartValueError, formatErrorMsg(self.lineno, msg="No preexisting RAID device with the name \"%s\" was found." % devicename)
 
-            dev.format.mountpoint = lvd.mountpoint
-            dev.format.mountopts = lvd.fsopts
+            dev.format.mountpoint = rd.mountpoint
+            dev.format.mountopts = rd.fsopts
             self.handler.skipSteps.extend(["partition", "zfcpconfig", "parttype"])
             return rd
 
@@ -759,9 +759,9 @@ class Raid(commands.raid.F9_Raid):
         # to take place there.  Also, we only support a subset of all the
         # options on pre-existing RAIDs.
         if rd.preexist:
-            device = devicetree.getDeviceByName(rd.name)
+            device = devicetree.getDeviceByName(devicename)
             if not device:
-                raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specifeid nonexisted RAID %s in raid command" % rd.name)
+                raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specifeid nonexisted RAID %s in raid command" % devicename)
 
             devicetree.registerAction(ActionCreateFormat(device, kwargs["format"]))
         else:
-- 
1.5.4.3

_______________________________________________
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