summaryrefslogtreecommitdiffstats
path: root/storage/udev.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-03-19 14:00:44 -0400
committerJeremy Katz <katzj@redhat.com>2009-03-19 14:20:53 -0400
commitead6f49dbca873750f577917e820f439d383e317 (patch)
treea41412bb7df7601f87348d7ad13bb2c921168c7d /storage/udev.py
parentf03d7e9fd4d3f346f2d0b17fc7713fc886b2ca94 (diff)
downloadanaconda-ead6f49dbca873750f577917e820f439d383e317.tar.gz
anaconda-ead6f49dbca873750f577917e820f439d383e317.tar.xz
anaconda-ead6f49dbca873750f577917e820f439d383e317.zip
Add more blacklisting
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
Diffstat (limited to 'storage/udev.py')
-rw-r--r--storage/udev.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/udev.py b/storage/udev.py
index 38946482c..fcff5af65 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -54,6 +54,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():