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 > Ubuntu > Ubuntu Masters Of The Universe

 
 
LinkBack Thread Tools
 
Old 02-11-2009, 11:54 PM
David Cantrell
 
Default request.drive is a string, not a list in this instance.

---
autopart.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/autopart.py b/autopart.py
index 7230e9e..d78c4a0 100644
--- a/autopart.py
+++ b/autopart.py
@@ -1020,10 +1020,7 @@ def processPartitioning(diskset, requests, newParts):
elif request.preexist:
# we need to keep track of the max size of preexisting partitions
# FIXME: we should also get the max size for LVs at some point
- for drive in request.drive:
- part = diskset.disks[drive].getPartitionByPath("/dev/%s" % request.device)
- if part:
- break
+ part = diskset.disks[request.drive].getPartitionByPath("/dev/%s" % request.device)
request.maxResizeSize = part.getMaxAvailableSize(unit="MB")

## print("disk layout after everything is done")
--
1.6.1.3

_______________________________________________
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 09:29 PM.

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