diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-12-16 21:25:48 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-12-16 21:25:48 +0000 |
commit | 7ddd7e521a330c87fe9d1918a780b91949c1b65e (patch) | |
tree | 7b2a8859144b24f6a5bfff490a49c94d4a6f8ffe /image.py | |
parent | fbd43c8b0d44dbf304aa7df9174511ba7013e06c (diff) | |
download | anaconda-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.py | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -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"), |