[PATCH] mdadm -I no longer accepts --no-degraded (#620359)

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

 



---
 pyanaconda/storage/devicelibs/mdraid.py |    4 +---
 pyanaconda/storage/devices.py           |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/storage/devicelibs/mdraid.py b/pyanaconda/storage/devicelibs/mdraid.py
index 9151ed6..08f58d1 100644
--- a/pyanaconda/storage/devicelibs/mdraid.py
+++ b/pyanaconda/storage/devicelibs/mdraid.py
@@ -158,10 +158,8 @@ def mddestroy(device):
     except MDRaidError as msg:
         raise MDRaidError("mddestroy failed for %s: %s" % (device, msg))
 
-def mdadd(device, no_degraded=False):
+def mdadd(device):
     args = ["--incremental", "--quiet"]
-    if no_degraded:
-        args.append("--no-degraded")
     args.append(device)
 
     try:
diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index f7f9aaf..7b42d43 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -2749,7 +2749,7 @@ class MDRaidArrayDevice(StorageDevice):
         device.setup()
         udev_settle()
         try:
-            mdraid.mdadd(device.path, len(self.devices) < self.memberDevices)
+            mdraid.mdadd(device.path)
             # mdadd causes udev events
             udev_settle()
         except MDRaidError as e:
-- 
1.7.0.1

_______________________________________________
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