summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-07-31 20:47:45 +0000
committerErik Troan <ewt@redhat.com>2000-07-31 20:47:45 +0000
commit3f80f52a58f94cd74febf008467576dc13607159 (patch)
tree63cb40dd02d789372e87016f1581b973be929f88 /image.py
parent7e441d3694c9e30c23f432bebfefdcd6910f871c (diff)
downloadanaconda-3f80f52a58f94cd74febf008467576dc13607159.tar.gz
anaconda-3f80f52a58f94cd74febf008467576dc13607159.tar.xz
anaconda-3f80f52a58f94cd74febf008467576dc13607159.zip
use init to eject the final cd
Diffstat (limited to 'image.py')
-rw-r--r--image.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/image.py b/image.py
index 50c7101d5..fd879dfde 100644
--- a/image.py
+++ b/image.py
@@ -34,7 +34,9 @@ class CdromInstallMethod(ImageInstallMethod):
break
if changeloop == 0:
return
- self.mntPoint = mntPoint
+
+ self.mntPoint = fstab.filesystemSpace()[0][0]
+
target = "%s/rhinstall-stage2.img" % mntPoint
iutil.copyFile("%s/RedHat/base/stage2.img" % self.tree, target,
(self.progressWindow, _("Copying File"),
@@ -82,15 +84,16 @@ class CdromInstallMethod(ImageInstallMethod):
# this isn't the exact right place, but it's close enough
target = "%s/rhinstall-stage2.img" % self.mntPoint
os.unlink(target)
- isys.umount("/mnt/source")
- isys.ejectCdrom(self.device)
except SystemError:
pass
def writeCleanupPath(self, f):
isys.makeDevInode("loop0", "/tmp/loop0")
+ isys.makeDevInode(self.device, "/tmp/cdrom")
f.write("umount /mnt/runtime\n")
f.write("lounsetup /tmp/loop0\n")
+ f.write("umount /mnt/source\n")
+ f.write("eject /tmp/cdrom\n")
def __init__(self, url, messageWindow, progressWindow):
(self.device, tree) = string.split(url, "/", 1)