Change name of the array
diff --git a/storage/devices.py b/storage/devices.py
index fa9bd3f..fb36daa 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -3,6 +3,9 @@
#
# Copyright (C) 2009 Red Hat, Inc.
#
+# Copyright (C) 2009 Intel Corporation
+# April 2009 - Changes for MD support for isw format
+#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
@@ -2072,9 +2075,13 @@ class MDRaidArrayDevice(StorageDevice):
if self.exists and self.uuid:
# this is a hack to work around mdadm's insistence on giving
# really high minors to arrays it has no config entry for
+ if self.level == "container":
+ name = "/dev/md/%s" % self.path.split("/")[2]
+ else:
+ name = self.path
open("/etc/mdadm.conf", "a").write("ARRAY %s UUID=%s\n"
- % (self.path, self.uuid))
-
+ % (name, self.uuid))
+
@property
def size(self):
size = None
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list