summaryrefslogtreecommitdiffstats
path: root/lvm.py
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.py')
-rw-r--r--lvm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lvm.py b/lvm.py
index 3a57aa10b..5e385fab9 100644
--- a/lvm.py
+++ b/lvm.py
@@ -36,6 +36,9 @@ def has_lvm():
if not (os.access("/usr/sbin/lvm", os.X_OK) or
os.access("/sbin/lvm", os.X_OK)):
return
+
+ if iutil.getArch() == "s390" and not os.access("/proc/devices", os.R_OK):
+ return
f = open("/proc/devices", "r")
lines = f.readlines()