[PATCH 3/6] Fix two syntax problems with generated mdadm.conf entries. (#495552)

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

 



Write a newline after each array's entry. Also specify level as, eg:
'raid1' instead of '1'.
---
 storage/devices.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index d01fcc7..49ad902 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2108,7 +2108,7 @@ class MDRaidArrayDevice(StorageDevice):
         if self.level is None or self.memberDevices is None or not self.uuid:
             raise DeviceError("array is not fully defined")
 
-        fmt = "ARRAY level=%s num-devices=%d UUID=%s"
+        fmt = "ARRAY level=raid%d num-devices=%d UUID=%s\n"
         return fmt % (self.level, self.memberDevices, self.uuid)
 
     @property
-- 
1.6.0.6

_______________________________________________
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