summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-12-12 22:35:39 +0000
committerErik Troan <ewt@redhat.com>2000-12-12 22:35:39 +0000
commit3d7f083b542e9163bac6143b1c8cd5e8a96b5632 (patch)
treec204c7d77adf1ab2135a82911bd8e2cbd5c7b4c0 /image.py
parent4b46f922ff057de820d64bdf33fd8472a484d189 (diff)
downloadanaconda-3d7f083b542e9163bac6143b1c8cd5e8a96b5632.tar.gz
anaconda-3d7f083b542e9163bac6143b1c8cd5e8a96b5632.tar.xz
anaconda-3d7f083b542e9163bac6143b1c8cd5e8a96b5632.zip
cleanup loopback nfs installs
Diffstat (limited to 'image.py')
-rw-r--r--image.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/image.py b/image.py
index 244524028..b2238661c 100644
--- a/image.py
+++ b/image.py
@@ -22,6 +22,11 @@ class ImageInstallMethod(InstallMethod):
def readHeaders(self):
return HeaderListFromFile(self.tree + "/RedHat/base/hdlist")
+ def writeCleanupPath(self, f):
+ isys.makeDevInode("loop0", "/tmp/loop0")
+ f.write("umount /mnt/runtime\n")
+ f.write("lounsetup /tmp/loop0\n")
+
def __init__(self, tree):
InstallMethod.__init__(self)
self.tree = tree