[PATCH 2/4] Remove unused lvm and md activation code.
David Lehman
dlehman at redhat.com
Thu Jul 31 22:16:20 UTC 2014
This was used before we let systemd/udev set up storage for us.
---
blivet/devices.py | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index 25b7586..fc353e0 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -2601,12 +2601,6 @@ class LVMVolumeGroupDevice(ContainerDevice):
def _addParent(self, member):
super(LVMVolumeGroupDevice, self)._addParent(member)
- # now see if the VG can be activated
- ## XXX TODO: remove this activation code
- if self.exists and member.format.exists and self.complete and \
- flags.installer_mode:
- self.setup()
-
if (self.exists and member.format.exists and
len(self.parents) + 1 == self.pvCount):
self._complete = True
@@ -3794,20 +3788,6 @@ class MDRaidArrayDevice(ContainerDevice):
def _addParent(self, member):
super(MDRaidArrayDevice, self)._addParent(member)
- ## XXX TODO: remove this whole block of activation code
- if self.exists and member.format.exists and flags.installer_mode:
- member.setup()
- udev.settle()
-
- if self.spares <= 0:
- try:
- mdraid.mdnominate(member.path)
- # mdadd causes udev events
- udev.settle()
- except errors.MDRaidError as e:
- log.warning("failed to add member %s to md array %s: %s",
- member.path, self.path, e)
-
if self.status and member.format.exists:
# we always probe since the device may not be set up when we want
# information about it
--
1.9.3
More information about the anaconda-patches
mailing list