diff options
author | Erik Troan <ewt@redhat.com> | 2000-07-31 20:47:45 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-07-31 20:47:45 +0000 |
commit | 3f80f52a58f94cd74febf008467576dc13607159 (patch) | |
tree | 63cb40dd02d789372e87016f1581b973be929f88 /image.py | |
parent | 7e441d3694c9e30c23f432bebfefdcd6910f871c (diff) | |
download | anaconda-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.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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) |