[blivet:rhel7:master 3/3] Be more accepting for dm when allow_imperfect_devices is True (#1090009)
mulhern
amulhern at redhat.com
Wed Dec 3 19:33:08 UTC 2014
Related: rhbz#1090009
Don't filter, even if the device can not be found in the device tree.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devicetree.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 7130c2f..fa43936 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -801,6 +801,10 @@ class DeviceTree(object):
# something must be wrong -- if all of the slaves are in
# the tree, this device should be as well
if device is None:
+ if flags.allow_imperfect_devices:
+ log.warning("failed to scan dm array %s, but array may still be usable and imperfect devices are allowed", name)
+ return None
+
lvm.lvm_cc_addFilterRejectRegexp(name)
log.warning("ignoring dm device %s", name)
--
1.9.3
More information about the anaconda-patches
mailing list