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

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

 



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

_______________________________________________
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