-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):
diff --git a/yuminstall.py b/yuminstall.py
index 3bcb78d..dc2dde5 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -322,27 +322,28 @@ class AnacondaYum(YumSorter):
self._timestamp = f.readline().strip()
f.close()
+ dev = self.anaconda.id.storage.devicetree.getDeviceByNam e(self.anaconda.mediaDevice)
+ dev.format.mountpoint = self.tree
+
# If self.currentMedia is None, then there shouldn't be anything
# mounted. Before going further, see if the correct disc is already
# in the drive. This saves a useless eject and insert if the user
# has for some reason already put the disc in the drive.
if self.currentMedia is None:
try:
- isys.mount(self.anaconda.mediaDevice, self.tree,
- fstype="iso9660", readOnly=True)
+ dev.format.mount()
if verifyMedia(self.tree, discnum, None):
self.currentMedia = discnum
return