summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-16 21:25:48 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-16 21:25:48 +0000
commit7ddd7e521a330c87fe9d1918a780b91949c1b65e (patch)
tree7b2a8859144b24f6a5bfff490a49c94d4a6f8ffe /image.py
parentfbd43c8b0d44dbf304aa7df9174511ba7013e06c (diff)
downloadanaconda-7ddd7e521a330c87fe9d1918a780b91949c1b65e.tar.gz
anaconda-7ddd7e521a330c87fe9d1918a780b91949c1b65e.tar.xz
anaconda-7ddd7e521a330c87fe9d1918a780b91949c1b65e.zip
eject the cdrom from the second stage via a generic cleanup so that it
gets ejected when we tell people to remove their media instead of waiting until the very very end. and now we don't eject on network installs either :)
Diffstat (limited to 'image.py')
-rw-r--r--image.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/image.py b/image.py
index bfa94d297..e9c6f08cd 100644
--- a/image.py
+++ b/image.py
@@ -71,7 +71,11 @@ class CdromInstallMethod(ImageInstallMethod):
"%s from the shell on tty2 "
"and then click OK to retry.")
% ("/mnt/source",))
-
+
+ def ejectCD(self):
+ if len(self.currentDisc) > 0:
+ self.unmountCD()
+ isys.ejectCdrom(self.device)
def systemUnmounted(self):
if self.loopbackFile:
@@ -81,14 +85,6 @@ class CdromInstallMethod(ImageInstallMethod):
self.loopbackFile = None
def systemMounted(self, fsset, chroot, selected):
- changeloop=0
- for p in selected:
- if p[1000002] and p[1000002] > 1:
- changeloop=1
- break
- if changeloop == 0:
- return
-
self.loopbackFile = "%s%s%s" % (chroot,
fsset.filesystemSpace(chroot)[0][0],
"/rhinstall-stage2.img")
@@ -190,7 +186,7 @@ class CdromInstallMethod(ImageInstallMethod):
break
if not done:
- isys.ejectCdrom(self.device)
+ isys.ejectCdrom("/tmp/cdrom")
while not done:
self.messageWindow(_("Change CDROM"),