[PATCH 3/5] Don't include newly created devices in Storage.unusedDevices.

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

 



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

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 5919de6..195ebef 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -525,6 +525,10 @@ class Storage(object):
             for device in root.mounts.values() + root.swaps:
                 used_devices.extend(device.ancestors)
 
+        for new in [d for d in self.devicetree.leaves if not d.exists]:
+            if new in self.swaps or getattr(new.format, "mountpoint", None):
+                used_devices.extend(new.ancestors)
+
         used = set(used_devices)
         _all = set(self.devices)
         return list(_all.difference(used))
-- 
1.7.7.6

_______________________________________________
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