summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-04-26 21:39:09 +0000
committerJeremy Katz <katzj@redhat.com>2005-04-26 21:39:09 +0000
commita45d8e95bb23c4549935adf2885746f32abe4ba5 (patch)
treedc848d0c074c2cc13c34b895912c3a21294e7d56 /harddrive.py
parentd7ef40382dfd9c6dfcf6bf45aac9b721a935e0bf (diff)
downloadanaconda-a45d8e95bb23c4549935adf2885746f32abe4ba5.tar.gz
anaconda-a45d8e95bb23c4549935adf2885746f32abe4ba5.tar.xz
anaconda-a45d8e95bb23c4549935adf2885746f32abe4ba5.zip
2005-04-26 Jeremy Katz <katzj@redhat.com>
* image.py (CdromInstallMethod.getRPMFilename): Beep if we need to insert a new CD (#109264) * harddrive.py (HardDriveInstallMethod.__init__): Do method parsing here instead of in anaconda. Pass intf down. * image.py (ImageInstallMethod.__init__): Likewise. * image.py (CdromImageInstallMethod.__init__): Likewise. * image.py (NfsInstallMethod.__init__): Likewise. * image.py (NfsISOInstallMethod.__init__): Likewise. * installmethod.py (InstallMethod.__init__): Likewise. * urlinstall.py (UrlInstallMethod.__init__): Likewise. * anaconda: Make method __init__'s all basically act the same
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/harddrive.py b/harddrive.py
index dfa020d8e..4f344a989 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -194,15 +194,21 @@ class HardDriveInstallMethod(InstallMethod):
def protectedPartitions(self):
return [self.device]
- def __init__(self, device, type, path, messageWindow, rootPath):
- InstallMethod.__init__(self, rootPath)
+ def __init__(self, method, rootPath, intf):
+ InstallMethod.__init__(self, method, rootPath, intf)
+
+ device = method[0:method.index(":")]
+ tmpmethod = method[method.index(":") + 1:]
+ fstype = tmpmethod[0:tmpmethod.index("/")]
+ path = tmpmethod[tmpmethod.index("/") + 1:]
+
self.device = device
self.path = path
- self.fstype = type
+ self.fstype = fstype
self.fnames = {}
self.isoDirIsMounted = 0
self.mediaIsMounted = 0
- self.messageWindow = messageWindow
+ self.messageWindow = intf.messageWindow
# Go ahead and poke through the directory looking for interesting
# iso images