[PATCH] Honor ignoredisk --only-use. (#514353)

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

 



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

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 863e38e..155b1c9 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -912,6 +912,12 @@ class DeviceTree(object):
         if name in self._ignoredDisks:
             return True
 
+        if udev_device_is_disk(info) and not udev_device_is_md(info) and \
+           not udev_device_is_dm(info):
+            if self.exclusiveDisks and name not in self.exclusiveDisks:
+                self.addIgnoredDisk(name)
+                return True
+
         for ignored in self._ignoredDisks:
             if ignored == os.path.basename(os.path.dirname(sysfs_path)):
                 # this is a partition on a disk in the ignore list
-- 
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