summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-25 19:27:03 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-25 19:27:03 +0000
commitdc44a06b95c25dd3dad62ebb2aae0290f279fb46 (patch)
treeabb6c9cb69b11488f8eec1c86ce8bebcbf9458b5 /image.py
parent631bacf0193b8a65eaec81043b1b03bfa329cc95 (diff)
downloadanaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.tar.gz
anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.tar.xz
anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.zip
get the root path into all of the install methods
Diffstat (limited to 'image.py')
-rw-r--r--image.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/image.py b/image.py
index 994f61379..a5dd85bf2 100644
--- a/image.py
+++ b/image.py
@@ -41,8 +41,8 @@ class ImageInstallMethod(InstallMethod):
def getSourcePath(self):
return self.tree
- def __init__(self, tree):
- InstallMethod.__init__(self)
+ def __init__(self, tree, rootPath):
+ InstallMethod.__init__(self, rootPath)
self.tree = tree
class CdromInstallMethod(ImageInstallMethod):
@@ -175,18 +175,18 @@ class CdromInstallMethod(ImageInstallMethod):
except SystemError:
pass
- def __init__(self, url, messageWindow, progressWindow):
+ def __init__(self, url, messageWindow, progressWindow, rootPath):
(self.device, tree) = string.split(url, "/", 1)
self.messageWindow = messageWindow
self.progressWindow = progressWindow
self.currentDisc = 1
self.loopbackFile = None
- ImageInstallMethod.__init__(self, "/" + tree)
+ ImageInstallMethod.__init__(self, "/" + tree, rootPath)
class NfsInstallMethod(ImageInstallMethod):
- def __init__(self, tree):
- ImageInstallMethod.__init__(self, tree)
+ def __init__(self, tree, rootPath):
+ ImageInstallMethod.__init__(self, tree, rootPath)
def findIsoImages(path, messageWindow):
files = os.listdir(path)
@@ -269,7 +269,7 @@ class NfsIsoInstallMethod(NfsInstallMethod):
def filesDone(self):
self.umountImage()
- def __init__(self, tree, messageWindow):
+ def __init__(self, tree, messageWindow, rootPath):
self.imageMounted = None
self.isoPath = tree
@@ -281,5 +281,5 @@ class NfsIsoInstallMethod(NfsInstallMethod):
self.discImages = findIsoImages(tree, messageWindow)
self.mountImage(1)
- ImageInstallMethod.__init__(self, self.mntPoint)
+ ImageInstallMethod.__init__(self, self.mntPoint, rootPath)