[PATCH 3/8] Honor clearPartDisks when clearing whole disk formatting formatted disks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux