summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-06-16 18:14:07 +0000
committerErik Troan <ewt@redhat.com>2000-06-16 18:14:07 +0000
commite1b8a53ad4e51f6e330a600e2a02144a49d4926a (patch)
treea35e72138a4855d6e60798d4231f498d6b125277 /image.py
parent17b94575b1e4ef2232db6f0af58fd114c213c6c9 (diff)
downloadanaconda-e1b8a53ad4e51f6e330a600e2a02144a49d4926a.tar.gz
anaconda-e1b8a53ad4e51f6e330a600e2a02144a49d4926a.tar.xz
anaconda-e1b8a53ad4e51f6e330a600e2a02144a49d4926a.zip
eject cdrom at end of install
Diffstat (limited to 'image.py')
-rw-r--r--image.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/image.py b/image.py
index 670dac9f9..5df6ef9d4 100644
--- a/image.py
+++ b/image.py
@@ -72,6 +72,8 @@ 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)
def writeCleanupPath(self, f):
isys.makeDevInode("loop0", "/tmp/loop0")