Hopefully...testing with this patch gets it through instantiation of the device objects and into actually interacting with them via anaconda.
mulhern (1): Set _partedDevice attribute before calling device constructor (#1150147)
blivet/devices.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Related: fed#1150147
See previous commit: Set sysfsPath attribute for reason.
Signed-off-by: mulhern amulhern@redhat.com --- blivet/devices.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/blivet/devices.py b/blivet/devices.py index 7ed131a..6c7d86a 100644 --- a/blivet/devices.py +++ b/blivet/devices.py @@ -568,9 +568,10 @@ class StorageDevice(Device): self.exists = exists self.uuid = uuid
- # Set sysfsPath before super call as MDRaidArrayDevice._addParent() - # reads sysfsPath. + # Set these fields before super call as MDRaidArrayDevice._addParent() + # reads them, through calls to status() and partedDevice(). self.sysfsPath = sysfsPath + self._partedDevice = None
Device.__init__(self, name, parents=parents)
@@ -591,8 +592,6 @@ class StorageDevice(Device): self.fstabComment = "" self._targetSize = self._size
- self._partedDevice = None - self.deviceLinks = []
if self.exists and flags.testing and not self._size:
On Fri, Oct 17, 2014 at 05:47:00PM -0400, mulhern wrote:
Hopefully...testing with this patch gets it through instantiation of the device objects and into actually interacting with them via anaconda.
mulhern (1): Set _partedDevice attribute before calling device constructor (#1150147)
blivet/devices.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
-- 1.9.3
Ack
anaconda-patches@lists.fedorahosted.org