summaryrefslogtreecommitdiffstats
path: root/lvm.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-05-03 16:53:14 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-05-03 16:53:14 +0000
commit2b4d34f2036bdabbf6e18087946c2b5b1e647323 (patch)
tree0b7a13212f3aa8778bdb7d43de6b3c516985f28d /lvm.py
parentfd9d962efca15351b0f1806f09d9ba17d21874ba (diff)
downloadanaconda-2b4d34f2036bdabbf6e18087946c2b5b1e647323.tar.gz
anaconda-2b4d34f2036bdabbf6e18087946c2b5b1e647323.tar.xz
anaconda-2b4d34f2036bdabbf6e18087946c2b5b1e647323.zip
* lvm.py (has_lvm): Return if we're on S/390 and don't see a
/proc/devices file.
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()