summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage/dasd.py
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-08-22 12:33:26 +0200
committerAles Kozumplik <akozumpl@redhat.com>2011-08-26 10:26:55 +0200
commit3e8d08cac6aa89f001c5b32dba251a62a45ed7f4 (patch)
tree43e95ebdc7db0d14c92c58d6c74df4f534866300 /pyanaconda/storage/dasd.py
parent0c662ebeaf4043ff2e2a1f7d09b527f4bf243047 (diff)
downloadanaconda-3e8d08cac6aa89f001c5b32dba251a62a45ed7f4.tar.gz
anaconda-3e8d08cac6aa89f001c5b32dba251a62a45ed7f4.tar.xz
anaconda-3e8d08cac6aa89f001c5b32dba251a62a45ed7f4.zip
Remove unnecessary ROOT_PATH constant passing.
This is a hefty and tedious change.
Diffstat (limited to 'pyanaconda/storage/dasd.py')
-rw-r--r--pyanaconda/storage/dasd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyanaconda/storage/dasd.py b/pyanaconda/storage/dasd.py
index 3c08d295f..800ffe557 100644
--- a/pyanaconda/storage/dasd.py
+++ b/pyanaconda/storage/dasd.py
@@ -196,14 +196,14 @@ class DASD:
if dasd:
self._devices.append(dasd)
- def write(self, instPath):
+ def write(self):
""" Write /etc/dasd.conf to target system for all DASD devices
configured during installation.
"""
if self._devices == []:
return
- f = open(os.path.realpath(instPath + "/etc/dasd.conf"), "w")
+ f = open(os.path.realpath(ROOT_PATH + "/etc/dasd.conf"), "w")
for dasd in self._devices:
fields = [dasd.busid] + dasd.getOpts()
f.write("%s\n" % (" ".join(fields),))