summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-08 18:53:59 +0000
committerErik Troan <ewt@redhat.com>2000-08-08 18:53:59 +0000
commitffd483c53fa77d5f2138ba527b3c3bdbecb09e05 (patch)
tree957bab69ea44c18bc1266af4d03ff8e0d8788496 /image.py
parent5fefde72bb02bacaa2cca99af2e64fad1e5358cf (diff)
downloadanaconda-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.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/image.py b/image.py
index debbd9e07..b9f60600d 100644
--- a/image.py
+++ b/image.py
@@ -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)