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 Skip METADATA, FREESPACE, and PROTECTED partitions.

---
partitions.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/partitions.py b/partitions.py
index 53c1480..cc57a2b 100644
--- a/partitions.py
+++ b/partitions.py
@@ -369,14 +369,14 @@ class Partitions:
disk = diskset.disks[drive]
part = disk.getFirstPartition()
while part:
- if part.type & parted.PARTITION_METADATA:
+ if (part.type & parted.PARTITION_METADATA) or
+ (part.type & parted.PARTITION_FREESPACE) or
+ (part.type & parted.PARTITION_PROTECTED):
part = part.nextPartition()
continue

format = None
- if part.type & parted.PARTITION_FREESPACE:
- ptype = None
- elif part.type & parted.PARTITION_EXTENDED:
+ if part.type & parted.PARTITION_EXTENDED:
ptype = None
elif part.getFlag(parted.PARTITION_RAID) == 1:
ptype = fsset.fileSystemTypeGet("software RAID")
--
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 10:31 PM.

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