summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
Diffstat (limited to 'image.py')
-rw-r--r--image.py7
1 files changed, 7 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: