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

[PATCH 1/2] Fix kickstart handling of md spares. (#683605)



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

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 5fe4cd8..85c96a9 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -950,8 +950,8 @@ class RaidData(commands.raid.F15_RaidData):
         kwargs["name"] = devicename
         kwargs["level"] = self.level
         kwargs["parents"] = raidmems
-        kwargs["memberDevices"] = len(raidmems)
-        kwargs["totalDevices"] = kwargs["memberDevices"]+self.spares
+        kwargs["memberDevices"] = len(raidmems) - self.spares
+        kwargs["totalDevices"] = len(raidmems)
 
         # If we were given a pre-existing RAID to create a filesystem on,
         # we need to verify it exists and then schedule a new format action
-- 
1.7.3.5


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