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 > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-22-2010, 08:24 AM
Hans de Goede
 
Default Honor clearPartDisks when clearing whole disk formatting formatted disks

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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 33210ec..b645933 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -305,6 +305,10 @@ def shouldClear(device, clearPartType, clearPartDisks=None):
not device.getFlag(parted.PARTITION_SWAP):
return False
elif device.isDisk and not device.partitioned:
+ # If we got a list of disks to clear, make sure this one's on it
+ if clearPartDisks and device.name not in clearPartDisks:
+ return False
+
if clearPartType == CLEARPART_TYPE_LINUX and
not device.format.linuxNative:
return False
--
1.6.5.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 07:42 PM.

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