[PATCH 3/3] Add more blacklisting

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

 



We used to also blacklist IBM STMF (iSeries kernel storage),
SCEI Flash (PS3 flash memory) and DGC LUNZ (luns we don't have
access to) so we should continue to do so to avoid trying to install
to things we know will cause failures
---
 storage/udev.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index 808ee29..009061f 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -53,6 +53,13 @@ def __is_blacklisted_blockdev(dev_name):
             log.info("%s looks to be the live device; ignoring" % (dev_name,))
             return True
 
+    if os.path.exists("/sys/class/block/%s/device/model" %(dev_name,)):
+        model = open("/sys/class/block/%s/device/model" %(dev_name,)).read()
+        for bad in ("IBM *STMF KERNEL", "SCEI Flash-5", "DGC LUNZ"):
+            if model.find(bad) != -1:
+                log.info("ignoring %s with model %s" %(dev_name, model))
+                return True
+
     return False
 
 def enumerate_block_devices():
-- 
1.6.1

_______________________________________________
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