Re: [PATCH 1/2] containers and their sets must only have a UUID= parameter in mdamd.conf

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

 



Looks good.

Hans de Goede wrote:
---
 storage/devices.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index a99121f..8a09197 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2247,9 +2247,10 @@ class MDRaidArrayDevice(StorageDevice):
         if self.level is None or self.memberDevices is None or not self.uuid:
             raise DeviceError("array is not fully defined", self.name)
- if self.type == "mdcontainer":
-            fmt = "ARRAY %s num-devices=%d UUID=%s\n"
-            return fmt % (self.path, self.memberDevices, self.uuid)
+        # containers and the sets within must only have a UUID= parameter
+        if self.type == "mdcontainer" or self.devices[0].type == "mdcontainer":
+            fmt = "ARRAY %s UUID=%s\n"
+            return fmt % (self.path, self.uuid)
fmt = "ARRAY %s level=raid%d num-devices=%d UUID=%s\n"
         return fmt % (self.path, self.level, self.memberDevices, self.uuid)

_______________________________________________
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