This patch adds support for new kernel parameter iswmd.
Subject: [PATCH 2/5] New iswmd parameter for kernel cmdline --- storage/devicetree.py | 1 + storage/formats/dmraid.py | 5 +++++ storage/formats/mdraid.py | 4 ++++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/storage/devicetree.py b/storage/devicetree.py index c7ba51d..d5b0eaf 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -33,6 +33,7 @@ import formats import devicelibs.mdraid from udev import * from iutil import log_method_call +from flags import flags import gettext _ = lambda x: gettext.ldgettext("anaconda", x) 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