summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-08-14 02:00:12 +0000
committerJeremy Katz <katzj@redhat.com>2003-08-14 02:00:12 +0000
commitc540e134193f9759873ced09b0156c6219983101 (patch)
treeb36013fe219e6c3d8762bf2a0a32b538ac5c0373 /isys/isys.py
parent3f01dfc8e9d6b8bf25b79b1cbda94ca0ff4ada09 (diff)
downloadanaconda-c540e134193f9759873ced09b0156c6219983101.tar.gz
anaconda-c540e134193f9759873ced09b0156c6219983101.tar.xz
anaconda-c540e134193f9759873ced09b0156c6219983101.zip
merge from taroon-branch. all kinds of miscellaneous bugfixes, including
* firewall update * iSeries PReP size * ppc mediacheck * tzdata stuff * cmdline mode * pkg defaults screen
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index b0ecc9fee..91bb42951 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -313,6 +313,25 @@ def isUsableDasd(device):
def isLdlDasd(device):
return _isys.isLdlDasd(device)
+# read /proc/dasd/devices and get a mapping between devs and the dasdnum
+def getDasdDevPort():
+ ret = {}
+ f = open("/proc/dasd/devices", "r")
+ lines = f.readlines()
+ f.close()
+
+ for line in lines:
+ index = line.index("(")
+ dasdnum = line[:index]
+
+ start = line[index:].find("dasd")
+ end = line[start:].find(":")
+ dev = line[start:end + start].strip()
+
+ ret[dev] = dasdnum
+
+ return ret
+
def makeDevInode(name, fn=None):
if fn:
_isys.mkdevinode(name, fn)