[PATCH] Make sure we have a clean lvm ignore list when we initialize.

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

 



This is good for when we go back and have to reset the devicetree.
---
 storage/devicelibs/lvm.py |    5 +++++
 storage/devicetree.py     |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py
index 452ccac..8cd6370 100644
--- a/storage/devicelibs/lvm.py
+++ b/storage/devicelibs/lvm.py
@@ -98,6 +98,11 @@ def lvm_cc_addFilterRejectRegexp(regexp):
 
     # compoes config once more.
     _composeConfig()
+
+def lvm_cc_resetFilter():
+    global config_args_data
+    config_args_data["filterRejects"] = []
+    config_args_data["filterAccepts"] = []
 # End config_args handling code.
 
 # Names that should not be used int the creation of VGs
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 7f882a5..8c41c50 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -204,6 +204,7 @@ class DeviceTree(object):
         self._ignoredDisks = []
         for disk in ignored:
             self.addIgnoredDisk(disk)
+        lvm.lvm_cc_resetFilter()
 
     def addIgnoredDisk(self, disk):
         self._ignoredDisks.append(disk)
-- 
1.6.0.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