[PATCH 2/4] New iswmd parameter for kernel cmdline

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

 



---
 storage/formats/dmraid.py |    5 +++++
 storage/formats/mdraid.py |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/storage/formats/dmraid.py b/storage/formats/dmraid.py
index 4ebd41c..fdbe14b 100644
--- a/storage/formats/dmraid.py
+++ b/storage/formats/dmraid.py
@@ -21,6 +21,7 @@
 #
 
 from iutil import log_method_call
+from flags import flags
 from ..errors import *
 from . import DeviceFormat, register_device_format
 
@@ -93,5 +94,9 @@ class DMRaidMember(DeviceFormat):
                         type=self.type, status=self.status)
         raise DMRaidMemberError("destruction of dmraid members is non-sense")
 
+
+if flags.cmdline.has_key("iswmd"):
+    DMRaidMember._udevTypes.remove("isw_raid_member")
+
 register_device_format(DMRaidMember)
 
diff --git a/storage/formats/mdraid.py b/storage/formats/mdraid.py
index b29d2f5..47a24c1 100644
--- a/storage/formats/mdraid.py
+++ b/storage/formats/mdraid.py
@@ -23,6 +23,7 @@
 import os
 
 from iutil import log_method_call
+from flags import flags
 from parted import PARTITION_RAID
 from ..errors import *
 from ..devicelibs import mdraid
@@ -96,5 +97,8 @@ class MDRaidMember(DeviceFormat):
         f.write("raid.%s" % self.mdUuid)
 
 
+if flags.cmdline.has_key("iswmd"):
+    MDRaidMember._udevTypes.append("isw_raid_member")
+
 register_device_format(MDRaidMember)
 
-- 
1.6.3.1.54.g99dd

_______________________________________________
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