[PATCH 1/3] Do not directly remove devices from previous autopart

Vratislav Podzimek vpodzime at redhat.com
Thu Sep 11 14:05:07 UTC 2014


These devices where created when creation actions were registered and should be
removed when (if) those actions are cancelled (e.g. as part of hiding/unhiding
devices).

Related: rhbz#1085201
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/storage.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index b951aa9..220bb14 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -718,15 +718,6 @@ class StorageSpoke(NormalSpoke, StorageChecker):
         # user might want to change settings presented in the dialogs shown from
         # within this method.
 
-        # Remove all non-existing devices if autopart was active when we last
-        # refreshed.
-        if self._previous_autopart:
-            self._previous_autopart = False
-            for partition in self.storage.partitions[:]:
-                # check if it's been removed in a previous iteration
-                if not partition.exists and \
-                   partition in self.storage.partitions:
-                    self.storage.recursiveRemove(partition)
 
         # hide/unhide disks as requested
         for disk in self.disks:
-- 
1.9.3



More information about the anaconda-patches mailing list