diff options
author | Erik Troan <ewt@redhat.com> | 2000-08-08 18:53:59 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-08-08 18:53:59 +0000 |
commit | ffd483c53fa77d5f2138ba527b3c3bdbecb09e05 (patch) | |
tree | 957bab69ea44c18bc1266af4d03ff8e0d8788496 /image.py | |
parent | 5fefde72bb02bacaa2cca99af2e64fad1e5358cf (diff) | |
download | anaconda-ffd483c53fa77d5f2138ba527b3c3bdbecb09e05.tar.gz anaconda-ffd483c53fa77d5f2138ba527b3c3bdbecb09e05.tar.xz anaconda-ffd483c53fa77d5f2138ba527b3c3bdbecb09e05.zip |
handle running out of space when copying stage2.img a bit more maturally
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -39,10 +39,19 @@ class CdromInstallMethod(ImageInstallMethod): self.loopbackFile = mntPoint + fstab.filesystemSpace()[0][0] + \ "/rhinstall-stage2.img" - iutil.copyFile("%s/RedHat/base/stage2.img" % self.tree, - self.loopbackFile, - (self.progressWindow, _("Copying File"), - _("Transferring install image to hard drive..."))) + try: + iutil.copyFile("%s/RedHat/base/stage2.img" % self.tree, + self.loopbackFile, + (self.progressWindow, _("Copying File"), + _("Transferring install image to hard drive..."))) + except: + self.messageWindow(_("Error"), + _("An error occured transferring the install image " + "to your hard drive. You are probably out of disk " + "space.")) + os.unlink(self.loopbackFile) + return 1 + isys.makeDevInode("loop0", "/tmp/loop") isys.lochangefd("/tmp/loop", self.loopbackFile) |