Add mdadm_no_degraded
diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py
index 7d6ace2..3f32689 100644
--- a/storage/devicelibs/mdraid.py
+++ b/storage/devicelibs/mdraid.py
@@ -4,6 +4,9 @@
#
# Copyright (C) 2009 Red Hat, Inc. All rights reserved.
#
+# Copyright (C) 2009 Intel Corporation
+# April 2009 - Changes for MD support for isw format
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -138,6 +141,20 @@ def mdadd(device):
["--incremental",
"--quiet",
"--auto=md",
+ device],
+ stderr = "/dev/tty5",
+ stdout = "/dev/tty5",
+ searchPath=1)
+
+ if rc:
+ raise MDRaidError("mdadd failed for %s" % device)
+
+def mdadd_no_degraded(device):
+ ### FIXME: this should be merged with mdadd function
+ rc = iutil.execWithRedirect("mdadm",
+ ["--incremental",
+ "--auto=md",
+ "--no-degraded",
device],
stderr = "/dev/tty5",
stdout = "/dev/tty5",
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list