summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-08-17 20:21:18 +0000
committerChris Lumens <clumens@redhat.com>2006-08-17 20:21:18 +0000
commit03abe5a091ed97fa0c582bbc5bf0af041ed42b3f (patch)
tree72ec8ca6e8e884614f2e75c249c84cb73a42d730 /iutil.py
parentf630b795bd3afd2c13fc25c244a46197618135fd (diff)
downloadanaconda-03abe5a091ed97fa0c582bbc5bf0af041ed42b3f.tar.gz
anaconda-03abe5a091ed97fa0c582bbc5bf0af041ed42b3f.tar.xz
anaconda-03abe5a091ed97fa0c582bbc5bf0af041ed42b3f.zip
Flush the drive cache so we don't mistake hard drives for CD/DVD drives.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index 77138c9a1..a606f7ddd 100644
--- a/iutil.py
+++ b/iutil.py
@@ -215,6 +215,7 @@ def makeCharDeviceNodes():
# make the device nodes for all of the drives on the system
def makeDriveDeviceNodes():
+ isys.flushDriveDict()
hardDrives = isys.hardDriveDict()
for drive in hardDrives.keys():
if drive.startswith("mapper"):
@@ -238,6 +239,7 @@ def makeDriveDeviceNodes():
dev = "%s%s%d" % (drive, sep, i)
isys.makeDevInode(dev, "/dev/%s" % (dev,))
+ isys.flushDriveDict()
cdroms = isys.cdromList()
for drive in cdroms:
isys.makeDevInode(drive, "/dev/%s" % (drive,))