summaryrefslogtreecommitdiffstats
path: root/raid.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-10-24 14:24:14 +0000
committerChris Lumens <clumens@redhat.com>2007-10-24 14:24:14 +0000
commit3828e9d7c36b54bf3c364806a6fc438ffb7ef477 (patch)
treef0852c0653eeb0e586be1ba12e2b96a4b2936ab2 /raid.py
parent379da9fdb8a2ae1a42d7c13ae426f28786109e6f (diff)
downloadanaconda-3828e9d7c36b54bf3c364806a6fc438ffb7ef477.tar.gz
anaconda-3828e9d7c36b54bf3c364806a6fc438ffb7ef477.tar.xz
anaconda-3828e9d7c36b54bf3c364806a6fc438ffb7ef477.zip
Clean up usage of /tmp for device nodes (patch from notting@redhat.com).
Diffstat (limited to 'raid.py')
-rw-r--r--raid.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/raid.py b/raid.py
index c9dc248ec..395af4930 100644
--- a/raid.py
+++ b/raid.py
@@ -65,9 +65,9 @@ def scanForRaid(drives):
for d in drives:
parts = []
- isys.makeDevInode(d, "/tmp/" + d)
+ dp = isys.makeDevInode(d)
try:
- dev = parted.PedDevice.get("/tmp/" + d)
+ dev = parted.PedDevice.get(dp)
disk = parted.PedDisk.new(dev)
raidParts = partedUtils.get_raid_partitions(disk)
@@ -76,7 +76,6 @@ def scanForRaid(drives):
except:
pass
- os.remove("/tmp/" + d)
for dev in parts:
try:
(major, minor, raidSet, level, nrDisks, totalDisks, mdMinor) =\