]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.c
Improvements for IMSM_NO_PLATFORM testing.
[thirdparty/mdadm.git] / mdmon.c
diff --git a/mdmon.c b/mdmon.c
index 096b4d7650cf717ea39438e36865101aa9c56c72..cef5bbc8b0dd37d6e6fdfa42fa94ed41d2d19467 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -318,6 +318,12 @@ int main(int argc, char *argv[])
                {NULL, 0, NULL, 0}
        };
 
+       /*
+        * mdmon should never complain due to lack of a platform,
+        * that is mdadm's job if at all.
+        */
+       imsm_set_no_platform(1);
+
        while ((opt = getopt_long(argc, argv, "thaF", options, NULL)) != -1) {
                switch (opt) {
                case 'a':