FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-30-2010, 07:09 PM
David Lehman
 
Default Fix PartitionDevice.path to work with device-mapper disks.

---
pyanaconda/storage/devices.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index db17391..abc1d81 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1081,6 +1081,15 @@ class PartitionDevice(StorageDevice):
start=geometry.start, end=geometry.end)

@property
+ def path(self):
+ if not self.parents:
+ devDir = StorageDevice._devDir
+ else:
+ devDir = self.parents[0]._devDir
+
+ return "%s/%s" % (devDir, self.name)
+
+ @property
def partType(self):
""" Get the partition's type (as parted constant). """
try:
--
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org