Use blacklist_exceptions for mpath devices (#612399)
From: NEC <mfuruta@redhat.com>
This makes anaconda generate a blacklist_exceptions section in multipath.conf
---
storage/devicelibs/mpath.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/storage/devicelibs/mpath.py b/storage/devicelibs/mpath.py
index 50cccfd..ae7b257 100644
--- a/storage/devicelibs/mpath.py
+++ b/storage/devicelibs/mpath.py
@@ -232,6 +232,14 @@ blacklist {
ret += ' vendor %s
' % device.vendor
ret += ' product %s
' % device.model
ret += ' }
'
+ if self.mpaths:
+ ret += ' wwid "*"
'
+ ret += '}
'
+ ret += 'blacklist_exceptions {
'
+ for mpath in self.mpaths:
+ for k,v in mpath.config.items():
+ if k == 'wwid':
+ ret += ' wwid %s
' % v
ret += '}
'
ret += 'multipaths {
'
for mpath in self.mpaths:
--
1.7.1.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list