summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-08 19:17:40 +0000
committerErik Troan <ewt@redhat.com>2000-08-08 19:17:40 +0000
commit95c94b1ee2d2ca433e2a767f36f6bace006f4305 (patch)
tree7fb25e401967dc123ebc339fe0a901382d5f89dc
parentd62dabcbddc7b42a5dabb72ca4b40dbab54c8ff4 (diff)
downloadanaconda-95c94b1ee2d2ca433e2a767f36f6bace006f4305.tar.gz
anaconda-95c94b1ee2d2ca433e2a767f36f6bace006f4305.tar.xz
anaconda-95c94b1ee2d2ca433e2a767f36f6bace006f4305.zip
more run-out-of-disk-space-reasonable patches
-rw-r--r--image.py7
-rw-r--r--installmethod.py3
-rw-r--r--todo.py2
3 files changed, 12 insertions, 0 deletions
diff --git a/image.py b/image.py
index b9f60600d..6368b2b91 100644
--- a/image.py
+++ b/image.py
@@ -27,6 +27,13 @@ class ImageInstallMethod(InstallMethod):
class CdromInstallMethod(ImageInstallMethod):
+ def systemUnmounted(self):
+ if self.loopbackFile:
+ isys.makeDevInode("loop0", "/tmp/loop")
+ isys.lochangefd("/tmp/loop",
+ "%s/RedHat/base/stage2.img" % self.tree)
+ self.loopbackFile = None
+
def systemMounted(self, fstab, mntPoint, selected):
changeloop=0
for p in selected:
diff --git a/installmethod.py b/installmethod.py
index a162b6bc3..4a9e8de86 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -15,6 +15,9 @@ class InstallMethod:
def readHeaders(self):
pass
+ def systemUnmounted(self, fstab, mntPoint, selected):
+ pass
+
def systemMounted(self, fstab, mntPoint, selected):
pass
diff --git a/todo.py b/todo.py
index 07c16914d..414390772 100644
--- a/todo.py
+++ b/todo.py
@@ -1567,6 +1567,8 @@ class ToDo:
self.instLog.close()
del syslog
+
+ self.method.systemUnmounted ()
self.fstab.umountFilesystems(self.instPath)
rpm.errorSetCallback (oldError)