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 Advisory Board

 
 
LinkBack Thread Tools
 
Old 03-24-2009, 10:10 PM
David Lehman
 
Default Check that partition is on the disk before trying to remove it. (#491997)

---
storage/partitioning.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 95d6ec2..f716657 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -606,6 +606,9 @@ def allocatePartitions(disks, partitions):
#_part.disk.partedDisk.removePartition(_part.parte dPartition)
partedDisk = partedDisks[_part.disk.partedDisk.device.path]
#log.debug("removing part %s (%s) from disk %s (%s)" % (_part.partedPartition.path, [p.path for p in _part.partedPartition.disk.partitions], partedDisk.device.path, [p.path for p in partedDisk.partitions]))
+ if not partedDisk.getPartitionByPath(_part.path):
+ continue
+
partedDisk.removePartition(_part.partedPartition)
# remove empty extended so it doesn't interfere
extended = partedDisk.getExtendedPartition()
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-24-2009, 11:19 PM
David Cantrell
 
Default Check that partition is on the disk before trying to remove it. (#491997)

Ack

On 03/24/2009 01:10 PM, David Lehman wrote:

---
storage/partitioning.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 95d6ec2..f716657 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -606,6 +606,9 @@ def allocatePartitions(disks, partitions):
#_part.disk.partedDisk.removePartition(_part.parte dPartition)
partedDisk = partedDisks[_part.disk.partedDisk.device.path]
#log.debug("removing part %s (%s) from disk %s (%s)" % (_part.partedPartition.path, [p.path for p in _part.partedPartition.disk.partitions], partedDisk.device.path, [p.path for p in partedDisk.partitions]))
+ if not partedDisk.getPartitionByPath(_part.path):
+ continue
+
partedDisk.removePartition(_part.partedPartition)
# remove empty extended so it doesn't interfere
extended = partedDisk.getExtendedPartition()



--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
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:55 AM.

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