summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-24 09:34:41 -0400
committerChris Lumens <clumens@redhat.com>2009-03-24 09:41:46 -0400
commited2883f06e20d2beda75e1f3fbdb5b827c31a9b0 (patch)
treeedfff1b2c34d166c2d89cfb52ab0fff72481564e /image.py
parent74df7604a2bfd0af0df3c60cffb4b5b0ab325cc8 (diff)
downloadanaconda-ed2883f06e20d2beda75e1f3fbdb5b827c31a9b0.tar.gz
anaconda-ed2883f06e20d2beda75e1f3fbdb5b827c31a9b0.tar.xz
anaconda-ed2883f06e20d2beda75e1f3fbdb5b827c31a9b0.zip
Use the mount and unmount methods on OpticalDevice.format now.
Diffstat (limited to 'image.py')
-rw-r--r--image.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/image.py b/image.py
index c77d92318..29ab10b40 100644
--- a/image.py
+++ b/image.py
@@ -255,8 +255,7 @@ def scanForMedia(tree, storage):
continue
try:
- if isys.mount(dev.path, tree, fstype="iso9660", readOnly=True):
- continue
+ dev.format.mount(mountpoint=tree)
except:
continue
@@ -273,13 +272,13 @@ def umountImage(tree, currentMedia):
isys.umount(tree, removeDir=False)
isys.unlosetup("/dev/loop1")
-def unmountCD(path, messageWindow):
- if not path:
+def unmountCD(dev, messageWindow):
+ if not dev:
return
while True:
try:
- isys.umount(path, removeDir=False)
+ dev.format.unmount()
break
except Exception, e:
log.error("exception in _unmountCD: %s" %(e,))
@@ -288,7 +287,7 @@ def unmountCD(path, messageWindow):
"Please make sure you're not accessing "
"%s from the shell on tty2 "
"and then click OK to retry.")
- % (path,))
+ % (dev.path,))
def verifyMedia(tree, discnum, timestamp=None):
if os.access("%s/.discinfo" % tree, os.R_OK):